PHP code example of marshmallow / pages

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

/**
 * 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