PHPackages                             kacedeveloperz/permissionui - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. kacedeveloperz/permissionui

ActiveLibrary

kacedeveloperz/permissionui
===========================

A permissions manage UI for laravel-vue applications

v2.1.1(1y ago)0118MITVue

Since Apr 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kdeveloperz/permissionui)[ Packagist](https://packagist.org/packages/kacedeveloperz/permissionui)[ RSS](/packages/kacedeveloperz-permissionui/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

What to note before installing this package
-------------------------------------------

[](#what-to-note-before-installing-this-package)

> Only compatible with laravel 12 and Inertia-vue fresh laravel 12

- How to install this package ---------

Run a fresh Laravel 12 with Inertia-vue option project

> composer require kacedeveloperz/permissionui

Install Spatie Permissions package and set up as directed

> composer require spatie/laravel-permission php artisan vendor:publish --provider="Spatie\\Permission\\PermissionServiceProvider" php artisan optimize:clear php artisan migrate

Add the necessary trait to your User model:
-------------------------------------------

[](#add-the-necessary-trait-to-your-user-model)

- The User model requires this trait use HasRoles;
    - import

    > use Spatie\\Permission\\Traits\\HasRoles;

Install vue-multiselect": "^3.2.0 package

> npm i vue-multiselect

Install sweetalert2 package

> npm i sweetalert2

Install kacedeveloperz/pemissionui

> composer require kacedeveloperz/permissionui

Run the publish command to publish the vue asset files files:

> php artisan vendor:publish --tag=kace-perm-vue --force

Unwrap Resource data: Add the following in your AppServiceProvider boot method:

> JsonResource::withoutWrapping();

- import:

> use Illuminate\\Http\\Resources\\Json\\JsonResource;

Run :

> npm run dev

Run :

> php artisan optimize:clear

Usages
======

[](#usages)

### usage of Toast in vue component

[](#usage-of-toast-in-vue-component)

- import { useToast } from '@/pages/kace-permission/composables/toast';
- const { toast } = useToast();

#### call it like this

[](#call-it-like-this)

- toast("success", "This is a toast message")

Checking of Roles and Permissions in vue component
==================================================

[](#checking-of-roles-and-permissions-in-vue-component)

- import { usePermission } from '@/pages/kace-permission/composables/permissions';
- const { hasRole, hasPermission, hasRoles, hasPermissions } = usePermission();

#### call it like this

[](#call-it-like-this-1)

- hasRole('admin')
- hasPermission('view record')
- hasRoles(\['admin', 'author'\])
- hasPermissions(\['view record', 'delete record'\])

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance48

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

399d ago

Major Versions

v1.2.0 → v2.0.02025-04-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d62f585b46f4657898280499f0611696f382e28a45e92946f11195b6d838b9d?d=identicon)[kacedeveloperz](/maintainers/kacedeveloperz)

---

Top Contributors

[![kdeveloperz](https://avatars.githubusercontent.com/u/73425911?v=4)](https://github.com/kdeveloperz "kdeveloperz (15 commits)")

### Embed Badge

![Health badge](/badges/kacedeveloperz-permissionui/health.svg)

```
[![Health](https://phpackages.com/badges/kacedeveloperz-permissionui/health.svg)](https://phpackages.com/packages/kacedeveloperz-permissionui)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
