PHP code example of spiggle / filament-portal-snapshot

1. Go to this page and download the library: Download spiggle/filament-portal-snapshot 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/ */

    

spiggle / filament-portal-snapshot example snippets


'snapshots' => [
    'driver' => 'local',
    'root' => database_path('snapshots'),
],

use Spiggle\FilamentPortalSnapshot\FilamentPortalSnapshotPlugin;

$panel->plugin(
    FilamentPortalSnapshotPlugin::make()
        ->authorize(fn (): bool => auth()->user()?->is_admin ?? false)
        ->navigationGroup('Portal')
        ->navigationSort(80)
);