1. Go to this page and download the library: Download marshmallow/pages library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
marshmallow / pages example snippets
@foreach ($layouts as $layout)
{{ $layout->render() }}
@endforeach
use Marshmallow\Pages\Facades\Page;
Page::routes(); // Register a route for every page (call this in routes/web.php)
Page::find($id); // Retrieve a single cached page by its id
/**
* 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
],
];
bash
php artisan pages:install
bash
php artisan marshmallow:layout
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.