PHPackages                             geowrgetudor/laravel-spatie-permissions-vue - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. geowrgetudor/laravel-spatie-permissions-vue

AbandonedArchivedPlugin[Utility &amp; Helpers](/categories/utility)

geowrgetudor/laravel-spatie-permissions-vue
===========================================

Use Laravel Spatie Permission package in Vue

1.0.0(3y ago)715.0k↓54.2%MITJavaScript

Since Dec 13Pushed 3y agoCompare

[ Source](https://github.com/geowrgetudor/laravel-spatie-permissions-vue)[ Packagist](https://packagist.org/packages/geowrgetudor/laravel-spatie-permissions-vue)[ RSS](/packages/geowrgetudor-laravel-spatie-permissions-vue/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Use Laravel Spatie Permission in Vue3
=====================================

[](#use-laravel-spatie-permission-in-vue3)

This package is fork of the original package (ahmedsaoud31/laravel-permission-to-vuejs) and requires [laravel-permission](https://github.com/spatie/laravel-permission) by Spatie.

It supports SSR.

Installation
------------

[](#installation)

```
composer require geowrgetudor/laravel-spatie-permissions-vue
```

Setup
-----

[](#setup)

Add the trait to your `User` model:

```
use SpatiePermissionVue\Traits\RolesPermissionsToVue;

class User extends Authenticatable
{
    // ...
    use RolesPermissionsToVue;
}
```

Import and use `laravel-spatie-permissions-vue` plugin into your `app.js` file:

```
import RolesPermissionsToVue from "../../vendor/geowrgetudor/laravel-spatie-permissions-vue/src/js";

// ...

app.use(RolesPermissionsToVue);
```

Pass the Spatie roles &amp; permissions to a global var called `vueSpatiePermissions` in your `app.blade.php` or whatever your main blade template is called:

```

  window.vueSpatiePermissions = {!! auth()->check() ? auth()->user()->getRolesPermissionsAsJson() : 0 !!}

```

Usage
-----

[](#usage)

You can make use of `can` and `is` global functions to check for permissions and roles of the current user.

```

```

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.2% 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

Unknown

Total

1

Last Release

1298d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c7e9024852cbd80ed8fd94bd181a0012ef34017ec6bbc221102b88fc2aa8877c?d=identicon)[geowrgetudor](/maintainers/geowrgetudor)

---

Top Contributors

[![ahmedsaoud31](https://avatars.githubusercontent.com/u/4484348?v=4)](https://github.com/ahmedsaoud31 "ahmedsaoud31 (41 commits)")[![geowrgetudor](https://avatars.githubusercontent.com/u/7842657?v=4)](https://github.com/geowrgetudor "geowrgetudor (2 commits)")[![Engveloper](https://avatars.githubusercontent.com/u/46981084?v=4)](https://github.com/Engveloper "Engveloper (1 commits)")

### Embed Badge

![Health badge](/badges/geowrgetudor-laravel-spatie-permissions-vue/health.svg)

```
[![Health](https://phpackages.com/badges/geowrgetudor-laravel-spatie-permissions-vue/health.svg)](https://phpackages.com/packages/geowrgetudor-laravel-spatie-permissions-vue)
```

###  Alternatives

[venturedrake/laravel-crm

A free open source CRM built as a package for laravel projects

43311.2k](/packages/venturedrake-laravel-crm)[typicms/base

A modular multilingual CMS built with Laravel, enabling developers to manage structured content like pages, news, events, and more.

1.6k20.4k](/packages/typicms-base)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)

PHPackages © 2026

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