PHP code example of asorasoft / page

1. Go to this page and download the library: Download asorasoft/page library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

asorasoft / page example snippets


return [
    /*
     * Package Service Providers...
     */
    Asorasoft\Page\Providers\PageServiceProvider::class,
];

Route::get('legal/{type}/{locale?}', 'PageController@getPage');

shell
php artisan vendor:publish --tag=page-config  --force
php artisan optimize
php artisan migrate
shell
php artisan vendor:publish --tag=page-resource --force
shell
composer dumpautoload
php artisan db:seed --class=PageTableSeeder