laravel-permission-to-vuejs
laravel-permission-to-vuejs copied to clipboard
Laravel Permission Package To Use it in VueJs
In my page I have a div with " v-if="is('admin')" ". When the page loads with admin role, the div is not visible. But after reloading the page the div...
its miss declaration of type in typescript.  thanks
Please add usage examples in the and tags. Perhaps this is obvious, or the check is not used outside the template. Thanks!
Issue: Accessing `is` and `can` Methods from `laravel-permission-to-vue.js` in Vue 3 Setup Script Problem When trying to access the `is` and `can` methods from the `laravel-permission-to-vue.js` plugin in the Vue...
Getting this error using vue 2 ``` [plugin:vite:import-analysis] Failed to resolve entry for package "laravel-permission-to-vuejs". The package may have incorrect main/module/exports specified in its package.json. ``` Fails here ``` import...
Migrating from laravel mix to vite requires modules to become ES friendly This change is required to use the package with vite
Hi, great module. Very useful. Have you considered adding unit tests? It will give confidence to your consumers. 🙏
**Third, pass permissions from Laravel To Vuejs, in HTML header add this code:** ``` window.Laravel = { csrfToken: "{{ csrf_token() }}", jsPermissions: {!! auth()->check()?auth()->user()->jsPermissions():0 !!} } ```