Publishes such privacy policy and terms & conditions page

1.0.5 2021-07-07 08:43 UTC

This package is auto-updated.

Last update: 2024-11-07 16:18:47 UTC


README

screenshot.png

LegalPage for Laravel

Publishing with the repeat working such as privacy policy and terms & conditions page.

Installation

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 migrate

Publish routes, model, migration, controller and view files

php artisan vendor:publish --tag=page-resource --force

Usage

Copying 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=PageTableSeeder

After you seeds dummy data, you can access terms-and-conditions and privacy-policy page.

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email mabhelitc@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.