phpsa / filament-authentication

MIT License
113 stars 24 forks source link

Does not appears Users page #25

Closed Odilbukh closed 2 years ago

Odilbukh commented 2 years ago

After command php artisan migrate:fresh there is no users page

I have created new user manually in DB. I logged in as the user but the users page does not appears on sidebar. Even I have tried to enter bu url ../admin/users but there is error like 403 Forbiddin. It seems I dont have permission.

So How to create new user with admin permissions and get access to users?

image

phpsa commented 2 years ago

Do you have a user policy in your laravel installation? Filament resources make use of model policies. for the menu item to appear, your user should have viewAny permission on the policy

Odilbukh commented 2 years ago

No I dont have other user policy it's fresh Laravel project yet

phpsa commented 2 years ago

Can you confirm if still not working, It uses the Laravel Policy mapping to determine if allowed to view.

Odilbukh commented 2 years ago

You can close the issue