We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How can i Hide The Filament Shield according to the user role or permission?
The text was updated successfully, but these errors were encountered:
Same
Sorry, something went wrong.
@jcgmalave I have solved it by adding this to AuthServiceProvider
AuthServiceProvider
protected $policies = [ // 'App\Models\Model' => 'App\Policies\ModelPolicy', 'Spatie\Permission\Models\Role' => 'App\Policies\RolePolicy', ];
and also I changed this line in the config/filament-shield.php
config/filament-shield.php
'register_role_policy' => [ 'enabled' => true, ],
and the it worked
If you read the readme properly only setting it to true from config will suffice.
No branches or pull requests
How can i Hide The Filament Shield according to the user role or permission?
The text was updated successfully, but these errors were encountered: