/mm-pages

A package providing pages for the Mein Moers platform.

Primary LanguagePHPMIT LicenseMIT

mm-pages

A package providing pages for the Mein Moers platform.

Latest Version on Packagist GitHub Tests Action Status Total Downloads

A package providing pages for the Mein Moers platform.

Installation

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

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.