Filament Shield role relation question

This feels like a basic question since I'm learning filament v3 but I just installed https://github.com/bezhanSalleh/filament-shield and I'm trying to figure out, how do I attach resources to the edit role page? Feels like i am missing something basic but the docs don't give me much guidance.
GitHub
GitHub - bezhanSalleh/filament-shield: The easiest and most intuiti...
The easiest and most intuitive way to add access management to your Filament Admin Resources, Pages & Widgets through spatie/laravel-permission - GitHub - bezhanSalleh/filament-shield: Th...
No description
6 Replies
Vp
Vp9mo ago
Can you explain more, base on image you have 'User' and 'Role' resources and both are displayed..
a trendy name
a trendy name9mo ago
@valpuia wow, i just realized how simple the issue is. I didn't realize every model I wanted to manage within the roles page needed to have a resource attached to it. I just made a new resource and it's showing up there. Is there a way to add a model without a resource?
Dennis Koch
Dennis Koch9mo ago
Shield allows custom permission but they would end up under their own tab
Vp
Vp9mo ago
Just create a policy for your model without resource..
a trendy name
a trendy name9mo ago
Ah I was hoping it would be more seamless integration but that's understandable
Ismail Mahmoud
Ismail Mahmoud9mo ago
you can simply run the following command after creating resource
php artisan shield:install --fresh
php artisan shield:install --fresh
this will automatically create the policy for you resource.