A package providing pages for the Mein Moers platform.
You can install the package via composer:
composer require lambdadigamma/mm-pages
You can publish and run the migrations with:
php artisan vendor:publish --provider="LambdaDigamma\MMPages\MMPagesServiceProvider" --tag="migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --provider="LambdaDigamma\MMPages\MMPagesServiceProvider" --tag="config"
This is the contents of the published config file:
<?php
return [
'page_model' => LambdaDigamma\MMPages\Models\Page::class,
'page_block_model' => LambdaDigamma\MMPages\Models\PageBlock::class,
/**
* The api endpoints are being registered
* under this prefix.
*/
'api_prefix' => 'api',
/**
* This option is being used to disable
* the page detail endpoint.
*/
'api_disable_page_endpoint' => false,
/**
* This middleware stack is being
* used for all api routes.
*/
'api_middleware' => ['api'],
/**
* The admin endpoints are being registered
* under this prefix.
*/
'admin_prefix' => 'admin',
/**
* This middleware stack is being
* used for all api routes.
*/
'admin_middleware' => ['web', 'auth'],
'admin_middleware_stateless' => ['api', 'auth'],
];
- Storing slug rewrites to provide redirects even if slug / page title changes
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.