PHP code example of tobiasla78 / filament-simple-pages
1. Go to this page and download the library: Download tobiasla78/filament-simple-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/ */
tobiasla78 / filament-simple-pages example snippets
use Tobiasla78\FilamentSimplePages\FilamentSimplePagesPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->path('admin')
->plugins([
FilamentSimplePagesPlugin::make()
->prefixSlug('page')
])
}
use Tobiasla78\FilamentSimplePages\Pages\SimplePage;
public function panel(Panel $panel): Panel
{
return $panel
->path('user')
->pages([
SimplePage::class,
])
}
bash
php artisan filament-simple-pages:install