Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to integrate/use Filament shield for roles and Permission #29

Closed
MarJose123 opened this issue Aug 24, 2022 · 1 comment
Closed

Comments

@MarJose123
Copy link

Allow to add use HasPageShield; traits based on this documentation.

https://github.com/bezhanSalleh/filament-shield#pages

@shuvroroy
Copy link
Owner

shuvroroy commented Aug 24, 2022

Create a custom page class and that class will be extend Backups class. After that register in config file.

<?php

namespace App\Filament\Pages;

use ShuvroRoy\FilamentSpatieLaravelBackup\Pages\Backups::class as BaseBackups;

class Backups extends BaseBackups
{
      use HasPageShield;
}

filament-spatie-laravel-backup.php

'pages' => [
        'backups' => \App\Filament\Pages\Backups::class
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants