phpsa / filament-authentication

MIT License
112 stars 24 forks source link

Custom UserResource #2

Closed cubancodepath closed 2 years ago

cubancodepath commented 2 years ago

I try to change the UserResource class to modify the tables elements, but always return the default table.

In the config file put that

use App\Filament\Resources\MyUserResource;
// ...
return [
    'resources' => [
        'UserResource' => MyUserResource::class,
        'RoleResource' => \Phpsa\FilamentAuthentication\Resources\RoleResource::class,
       'PermissionResource' => \Phpsa\FilamentAuthentication\Resources\PermissionResource::class,
    ],
    'pages' => [
        'Profile' => \Phpsa\FilamentAuthentication\Pages\Profile::class
    ],
    'user_timezone' => 'Pacific/Auckland',
    'preload_roles' => true

And modify the table method, but always get the original table

phpsa commented 2 years ago

Thank you - will investigate and reply shortly

phpsa commented 2 years ago

Thank you, this has been resolved in V1.0.1