shuvroroy/filament-spatie-laravel-backup

Policies?

Closed this issue · 1 comments

How are you applying policies as to who can access this when the plugin doesn't use a model persay?

  1. create App\Filament\Pages\BackupsPage

namespace App\Filament\Pages;

use BezhanSalleh\FilamentShield\Traits\HasPageShield;
use ShuvroRoy\FilamentSpatieLaravelBackup\Pages\Backups;

class BackupsPage extends Backups
{
    // add this for work with BezhanSalleh\FilamentShield
    use HasPageShield;
}
  1. change pages.backups in config \config\filament-spatie-laravel-backup.php on \App\Filament\Pages\BackupsPage::class