I have two separate projects. One is Laravel for RESTful API and the other is Vue SPA.
If the frontend is also handled by Laravel, then handling role and permissions is easy since we can use the can() and hasRole() method Spatie Permission provided.
However, we can't access this value in Vue SPA directly from the backend.
Is there any way I can control the permission in Vue SPA?
Thanks