Pochwar / laravel-vue-spa

82 stars 31 forks source link

admin role not recognised #7

Open rowanfuchs opened 5 years ago

rowanfuchs commented 5 years ago

If i login as an admin i get a 403, i cannot seem to pin point where it goed wrong but the initial fail starts on Login.vue line: 49 eventually the AdminDashboard route redirects you to a 403.

I've built my own app based on your medium article but because i couldn't debug the issue i downloaded your github package but the issue remains. Do you know where i can debug further?

Pochwar commented 5 years ago

Hello,

Sorry for the late answer, it's been a while I didn't work on this project. Without seeing your code, it's complicated for me to help you. But a 403 error is when you don't have permissions for the request. So I would begin to take a look a the roles you got on your Laravel app and check if they are identical in Vue-auth configuration.