Closed scottgrayson closed 3 months ago
That's the default behavior, if you want to change it read Configure Permission Identifier docs section.
@bezhanSalleh I had the same issue I fixed it by Configuring Permission Identifier like you suggested.
However, the default behavior works only if the Model name is a single word.
Works for
\App\Filament\Resources\ZipResource; \\ view_any_zip
But not for. Not technincal problem but the formatting is annoying
\App\Filament\Resources\ZipCodeResource; \\ view_any_zip::code
Steps to reproduce:
result: new permission gets created called "view_any_zip::code"
expected: the existing permission "view_any_zip_code" should be attached to the role