Althinect / filament-spatie-roles-permissions

MIT License
237 stars 80 forks source link

Custom Resources #200

Open hizmarck opened 1 day ago

hizmarck commented 1 day ago

I'm wondering if in the configuration file, changing this it should change the default Resources?

config/filament-spatie-roles-permissions.php

'resources' => [
        'PermissionResource' => App\Filament\Resources\PermissionResource::class,
        'RoleResource' => App\Filament\Resources\RoleResource::class,
    ],

The resources there are some that I created to test, but seems to be that the plugin still continue pointing to the default ones, or am I wrong?

My configuration:

"php": "^8.2",
"althinect/filament-spatie-roles-permissions": "^2.2",
"filament/filament": "^3.2"
tharindarodrigo commented 1 day ago

I think you should remove the plugin from the filament panel and use your own resources. You'll still be able to generate the permissions and policies using the commands