Cannot believe people develop with Vuejs without an answer to this question !! How can you use that if you want to hide a button or display some data depending on a role or permission ? How to hide a component if the user has no authorization ? If we need to create api and call them each time and adjust the templates with tons of code to achieve such a basic thing....damm I cannot believe it. At this point, for me, VueJs can only be used for general components...not for a complete application...or it will be a nighmare to code and maintain... Cannot find something about that...cannot believe people didn't think about that... Please share your opinion...did I missed something ?
SPA / vue-router / authorizations
I'm not currently understanding how the authorizations are managed with a SPA / vue-router... I cannot see the link between a template and policies for example....
how do we translate basic laravel stuff as @if (Auth::check()) or @can('hasXXX', Auth::user()) using Vue templates ?
Do we need to make ajax requests for each new Vue component we create to check for an authorization ? How developers manage that topic with complete Vue applications ?
Each time we select a new route with vue-router as well ?
Now, for the moment, after some tests and with my questions above... I don't see the interest of using Vuetify for example as a template for an application... Do you have some links for videos or documentations about that topic... I'm interested to know and haven't find answers until now.... Thks
Please or to participate in this conversation.