0👍
If you are using the blade template together with laravel gates engine to render your views, you could pack the component inside a can
statement
@can('view-component', 'component-name')
<custom-vue-component></custom-vue-component>
@endcan
Specific use regarding permission checking in blade can be found here, general authorization info here and info about the gates [here]https://laravel.com/docs/5.4/authorization#gates().
- [Vuejs]-How to detect if user pressed back button with vue router?
- [Vuejs]-Can't load static files inside Vue.js component
Source:stackexchange.com