PHP code example of geosem42 / filamentor

1. Go to this page and download the library: Download geosem42/filamentor 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/ */

    

geosem42 / filamentor example snippets


Route::get('/{slug}', [App\Http\Controllers\PageController::class, 'show'])->name('page.show');

use Geosem42\Filamentor\FilamentorPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...other configuration
        ->plugins([
            // ...other plugins
            FilamentorPlugin::make(),
        ]);
}
bash
php artisan filamentor:install
bash
php artisan migrate