laravel-permission-to-vuejs icon indicating copy to clipboard operation
laravel-permission-to-vuejs copied to clipboard

Laravel Permission Package To Use it in VueJs

Results 8 laravel-permission-to-vuejs issues
Sort by recently updated
recently updated
newest added

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. ![image](https://user-images.githubusercontent.com/10943632/202433188-5868e115-9ae0-4719-95e9-92015775b10b.png) 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 !!} } ```