mercredi 11 mars 2020

Multiple Layouts in Laravel Blade, Vue-Router

I am trying to separate user & admin functionality but can't find a satisfactory solution.

After login, the user is authenticated and then he is redirected to either user or admin blade view depending upon the role.

"Now, in the user.blade file, I just want to load user-related routes & components and vice versa. This way, I won't need any ACL in Vue-router and extra fuss, I guess".

But how do I make this work? I have searched everywhere but can't find a proper solution...



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire