PHP code example of lopatin96 / laravel-pages
1. Go to this page and download the library: Download lopatin96/laravel-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/ */
lopatin96 / laravel-pages example snippets
php artisan migrate
protected $middleware = [
…
\Atin\LaravelPages\Http\Middleware\PagesGateChecker::class,
\Atin\LaravelPages\Http\Middleware\PersonalisedPage::class,
];
'header_path' => 'sections.header',
'footer_path' => 'sections.footer',
// Colors; Add all values to tailwind.config.js as `safelist` under `module.exports`
'gradient_from' => 'from-zinc-100',
'gradient_to' => 'to-emerald-300',
'text_color_primary' => 'text-emerald-400',
'text_color_secondary' => 'text-emerald-200',
'bg_color_primary' => 'bg-emerald-400',
'bg_color_secondary' => 'bg-emerald-200',
'color_primary_hex' => '#34d399',
'color_secondary_hex' => '#a7f3d0',
'main_button_color' => 'bg-gray-950',
…
…
'pages' => [
'index' => [
'sections' => [
'main' => [
'name' => 'main',
],
'others' => [
[
'name' => 'how-it-works',
],
[
'name' => 'stats',
],
]
]
]
…
php artisan vendor:publish --tag="laravel-pages-migrations"
php artisan vendor:publish --tag="laravel-pages-lang"
php artisan vendor:publish --tag="laravel-pages-views"
php artisan vendor:publish --tag="laravel-pages-config"
index.php