Download the PHP package marshmallow/pages without Composer
On this page you can find all versions of the php package marshmallow/pages. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marshmallow/pages
More information about marshmallow/pages
Files in marshmallow/pages
Package pages
Short Description 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.
License MIT
Homepage https://github.com/Marshmallow-Development/
Informations about the package pages

Laravel Nova Pages
This package provides you with the ability to easily create and manage pages and their content in Laravel Nova. It is essentially a curated bundle of handy Composer packages — both third-party and Marshmallow's own — combined so they can be reused quickly. The page body is built with marshmallow/nova-flexible layouts and is rendered to your front-end via a Blade view.
Requirements
- PHP
^8.1 - Laravel Nova
^5.0
The package pulls in a number of Marshmallow packages it builds on, including sluggable, seoable, translatable, redirectable, nova-flexible, nova-multiselect-field and nova-fontawesome. These are installed automatically via Composer.
Installation
Composer
You can install the package via composer:
Install for Nova 4
If you are using Nova 4, you can install the package using the command below.
Run the artisan command
Publish the configs from the Flexible package, migrate to create the pages table, create your Laravel Nova resource to manage your pages, and register the page routes in routes/web.php. This is all handled by a single install command:
Under the hood pages:install publishes the package's assets, publishes the Flexible field assets, runs migrate, generates a Page Nova resource, and appends \Marshmallow\Pages\Facades\Page::routes(); to your routes/web.php.
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 helpful, like:
The Page facade also exposes a few helpers:
Add a new layout
You can generate new layouts via the command provided by the marshmallow/nova-flexible package that is included in this package. Run the command below to generate a new layout.
Next you will need to add the newly generated layout to your flexible config.
Configuration
After running pages:install (or publishing manually with
php artisan vendor:publish --provider="Marshmallow\Pages\PagesServiceProvider"),
the config file is available at config/pages.php. The available options are:
| Key | Default | Description |
|---|---|---|
database.connection |
null |
Database connection used for the pages table. null uses the default connection. |
view |
marshmallow::layout |
The Blade view used to render a page. |
wysiwyg |
env('NOVA_WYSIWYG', \Laravel\Nova\Fields\Trix::class) |
The Nova field class used for WYSIWYG content. |
model |
\Marshmallow\Pages\Models\Page::class |
The Eloquent model representing a page. Override to use your own. |
middleware |
\Marshmallow\Pages\Http\Middleware\PageMiddleware::class |
Middleware applied to every page route. |
controller |
\Marshmallow\Pages\Http\Controllers\PageController@show |
The controller action that handles page requests. |
nova_translatable_fields |
true |
Show the language selector when editing a resource in Laravel Nova. |
share_page_to_view_data |
false |
When enabled, the full page is shared with all your view components. |
use_multi_languages |
false |
Enable when using Marshmallow's Translatable package to load translated routes and resolve pages by a translated slug. |
breadcrumb |
false |
Whether pages should be added to the Marshmallow Breadcrumb stack. |
flexible_config |
[] |
Extra config loaded by the Flexible package to change its default behaviour. |
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Stef
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of pages with dependencies
marshmallow/sluggable Version ^1.9
marshmallow/helpers Version ^2.19
marshmallow/commands Version ^1.2
marshmallow/seoable Version ^5.1
marshmallow/translatable Version ^5.0
marshmallow/redirectable Version ^5.0
marshmallow/nova-flexible Version ^5.1
marshmallow/nova-multiselect-field Version ^5.0
marshmallow/nova-fontawesome Version ^2.1|^3.0
laravel/nova Version ^5.0
laravel/helpers Version ^1.7