Answer the question
In order to leave comments, you need to log in
Laravel + VUEJS hidden sections, authentication check how best to do?
I am learning laravel, before that I wrote in pure php in conjunction with ajax jquery.
Actually the question is, it is clear how the authorization and verification modules work at the blade level.
Question: I have all the backing on the rest api, I communicate through VUEJS, and I draw everything through VUE components.
Is it safe to be limited to blade-level checks without a deep understanding of VUEJS interactions with laravel authorization?
Or is it worth deploying something like Jwt-auth? And delve into it?
Answer the question
In order to leave comments, you need to log in
I use this solution for myself. From laravel only rest api with authorization by jwt Frontend
stores all forms, buttons, etc. displaying the interface is done through checking access rights.
The server on laravel, after authorization returns the menu + rbac of the user. The interface is rendered based on the user's permissions. When the list of permissions is changed, for example by an administrator, an updated list of roles is sent to the user via websocket. The interface is being rebuilt.
And on the server I always check if the user is allowed to perform this action
. Ps jwt increases the convenience and speed of development due to its versatility. For example, to implement a web socket, I use laravel-echo which uses the same jwt authorization
Is it safe to limit yourself to checks at the blade level
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question