Publishing with the repeat working such as privacy policy and terms & conditions page.
composer require asorasoft/page
Register PageServiceProvider in config/app.php file
return [
/*
* Package Service Providers...
*/
Asorasoft\Page\Providers\PageServiceProvider::class,
];Publish page.php configuration file, and you can modify those the directory.
php artisan vendor:publish --tag=page-config --force
php artisan optimize
php artisan migratePublish routes, model, migration, controller and view files
php artisan vendor:publish --tag=page-resource --forceCopying those lines into routes/web.php file
Route::get('legal/{type}/{locale?}', 'PageController@getPage');
include_once ('Api/Backend/page.php');
include_once ('Api/Frontend/page.php');We already define default some content of legal page
composer dumpautoload
php artisan db:seed --class=PageTableSeederAfter you seeds dummy data, you can access terms-and-conditions and privacy-policy page.
composer testPlease see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email mabhelitc@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
