Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/williamcruzme/vue-gates

🔒 A Vue.js & Nuxt.js plugin that allows you to use roles and permissions in your components or DOM elements, also compatible as middleware and methods.
https://github.com/williamcruzme/vue-gates

directives gates laravel middleware nuxt permissions role roles ssr vue2 vue3 vuejs vuex

Last synced: 4 days ago
JSON representation

🔒 A Vue.js & Nuxt.js plugin that allows you to use roles and permissions in your components or DOM elements, also compatible as middleware and methods.

Awesome Lists containing this project

README

        

Vue Gates - Protecting every thing


Version
Vue
Vue
Downloads
License

vue-gates is a plugin for [Vue.js](https://vuejs.org/) & [Nuxt.js](https://nuxtjs.org/) that allows you to use roles and permissions in your components or DOM elements, also compatible as middleware and methods.

See the [full documentation](https://williamcruzme.github.io/vue-gates/#/)

## Features

- Persistent roles/permissions
- Super role avoids all role and permission validations
- Directives
- Middlewares
- Methods
- Wildcard support
- Support server-side rendering (Nuxt.js)
- TypeScript support
- Compatible with IE11

## ✅ Examples

See the [examples and instructions](examples) with Laravel.

## 🚸 Contributing

You are welcome to contribute to this project, but before you do, please make sure you read the [contribution guide](CONTRIBUTING.md).

## 🙈 Credits

- Inspired by Laravel Permission [syntax](https://github.com/spatie/laravel-permission#using-blade-directives).

## 🔒 License

MIT