Policies?
Closed this issue · 1 comments
tonypartridge commented
How are you applying policies as to who can access this when the plugin doesn't use a model persay?
obzhora-net commented
- 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;
}
- change
pages.backups
in config\config\filament-spatie-laravel-backup.php
on\App\Filament\Pages\BackupsPage::class