Closed hardiklakhalani closed 3 months ago
I explored the vendor code, probably this function is executing the task https://github.com/bezhanSalleh/filament-shield/blob/df7ccdc630ceef5358a7c094e3578004fe93e3f5/src/Commands/Concerns/CanGeneratePolicy.php#L47
shield only generates the default policy methods and any permissions you define. but doesn't create custom policy methods.
This is what I did as per
readme.md
But on running
php artisan shield:generate --all
it's not addinglock()
method inside this file\app\Policies\FooPolicy.php
but it's adding view_own permissions in the Database for all the resource as expected though.I added this question/bug (not sure) here because dedicated category seems 404 https://github.com/bezhanSalleh/filament-shield/discussions/new?category=q-a