Deze package geeft de mogelijkheid om gemakkelijk pagina's te beheren in Laravel. Dit is eigelijk een verzameling van handinge composer packages van derde en samengevoegd om snel te kunnen hergebruiken.


README

alt text

Laravel Nova Pages

Version Issues Licence PHP Syntax Checker

This page provides you with the ability to easily create and manage pages and its content in Laraval Nova.

Installation

Composer

You can install the package via composer:

composer require marshmallow/pages

Run the artisan commands

Publish the configs from the flexible package, migrate to create the pages table and create your Laravel Nova resource to manage your pages.

php artisan pages:install

Usage

You can add {!! Page::render($page) !!} to your blade file to render the layouts that are connected to the page. You can also loop through them yourself if that is helpfull like;

@foreach ($layouts as $layout)
    {{ $layout->render() }}
@endforeach

Add a new layout

You can generate new layouts via the command provided by the marshmallow/flexible package that is included in this package. Run the command below to generate a new layout.

php artisan marshmallow:layout

Next you will need to add the newly generated layout to your flexible config.

/**
 * config/flexible.php
 */
return [
    /**
     * Your custom layouts. Please check the readme.md file for more
     * information about these custom layouts.
     */
    'layouts' => [
        'sluggable-name-of-your-layout' => \App\Flexible\Layouts\LayoutClassName::class
    ],
];

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email stef@marshmallow.dev instead of using the issue tracker.

Credits

License

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