lambdadigamma / mm-pages
A package providing pages for the Mein Moers platform.
0.1.4
2026-06-03 07:25 UTC
Requires
- php: ^8.2
- ext-json: *
- illuminate/contracts: ^11.0|^12.0|^13.0
- illuminate/database: ^11.0|^12.0|^13.0
- illuminate/http: ^11.0|^12.0|^13.0
- illuminate/routing: ^11.0|^12.0|^13.0
- illuminate/support: ^11.0|^12.0|^13.0
- laravel-json-api/laravel: ^5.2
- mavinoo/laravel-batch: ^2.4.1
- spatie/laravel-json-api-paginate: ^2.0
- spatie/laravel-translatable: ^6.7.1
Requires (Dev)
- laravel-json-api/testing: ^3.2
- laravel/pint: ^1.27
- orchestra/testbench: ^11.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-faker: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- phpunit/phpunit: ^12.5
- spatie/test-time: ^1.3.3
README
A package providing pages for the Mein Moers platform.
A package providing pages for the Mein Moers platform.
Installation
Compatibility
- Laravel
11.x,12.x, and13.x - PHP
8.2+for package runtime - PHP
8.3+for local development and test tooling
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'], ];
Usage
Further Ideas
- Storing slug rewrites to provide redirects even if slug / page title changes
Testing
composer test
The package test suite targets Laravel 11.x, 12.x, and 13.x.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.