PHPackages                             wovosoft/laravel-permissions - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. wovosoft/laravel-permissions

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

wovosoft/laravel-permissions
============================

Roles and Permissions Implementation for https://github.com/spatie/laravel-permission using Laravel and Bootstrap-Vue

v1.0.6(5y ago)92682[23 PRs](https://github.com/wovosoft/laravel-permissions/pulls)MITVuePHP &gt;=7.3

Since Apr 1Pushed 3y ago1 watchersCompare

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

READMEChangelog (7)Dependencies (2)Versions (29)Used By (0)

 [ ![Wovosoft Software Development Compnay](https://github.com/wovosoft/bootstrap-vue-font-awesome-picker/raw/master/wovosoft.png) ](https://wovosoft.com/)

Laravel Role &amp; Permissions Front-End Implementation using [spatie/laravel-permission](https://github.com/spatie/laravel-permission)
=======================================================================================================================================

[](#laravel-role--permissions-front-end-implementation-using-spatielaravel-permission)

[![Latest Stable Version](https://camo.githubusercontent.com/be83a4defed4f0eb2ca59fc00fd12346984fe49b7dc9592dbb7a6246dc404514/68747470733a2f2f706f7365722e707567782e6f72672f776f766f736f66742f6c61726176656c2d7065726d697373696f6e732f762f737461626c65)](https://packagist.org/packages/wovosoft/laravel-permissions) [![Total Downloads](https://camo.githubusercontent.com/82e58d45f7e989d55176ce0f2ed1c2548b52beebd09c4f99ca21df8cfc36ad15/68747470733a2f2f706f7365722e707567782e6f72672f776f766f736f66742f6c61726176656c2d7065726d697373696f6e732f646f776e6c6f616473)](https://packagist.org/packages/wovosoft/laravel-permissions) [![Latest Unstable Version](https://camo.githubusercontent.com/e43c31bd56a985193d855d96c83a16b58fad5b2db29a553c6c81213b0ec670ef/68747470733a2f2f706f7365722e707567782e6f72672f776f766f736f66742f6c61726176656c2d7065726d697373696f6e732f762f756e737461626c65)](https://packagist.org/packages/wovosoft/laravel-permissions) [![License](https://camo.githubusercontent.com/49cb6863196250f55b1ade951cdb779e9dc4833355e4102e4363d0de4047bf2a/68747470733a2f2f706f7365722e707567782e6f72672f776f766f736f66742f6c61726176656c2d7065726d697373696f6e732f6c6963656e7365)](https://packagist.org/packages/wovosoft/laravel-permissions)

Package description
-------------------

[](#package-description)

The package is a Front-End Implementationf of the [spatie/laravel-permission](https://github.com/spatie/laravel-permission) package. The [spatie/laravel-permission](https://github.com/spatie/laravel-permission)is an awesome package for managing Roles &amp; Permissionf for Laravel applications out of the box. But currently it doesn't have the front-end to easily deploy in your application.

> This package comes to solve this problem. The package implements almost every features provided by [spatie/laravel-permission](https://github.com/spatie/laravel-permission).

Features
--------

[](#features)

- Vue Components for each possible features .
- Components are reusable. So, the default layout can be modified according to the needs of your application.
- Currently the front-end uses Bootstrap-Vue. But you can easily change it's layout.
- The front-end vue components are packaged as an npm package. You can use it as a module for you bundlers eg. Webpack,
- Check the main [spatie/laravel-permission](https://github.com/spatie/laravel-permission) for more details.

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

[](#installation)

Install via composer

```
composer require wovosoft/laravel-permissions
```

### Publish Configuration File

[](#publish-configuration-file)

1. Publish the configuration file.

```
php artisan vendor:publish --provider="Wovosoft\LaravelPermissions\ServiceProvider" --tag="config"
```

2. Publish the Vue Components. The Published components will be copied to `resources/laravel-permissions/permissions` folder. You need to add the `Main.vue` component to your `app.js`

```
php artisan vendor:publish --provider="Wovosoft\LaravelPermissions\ServiceProvider" --tag="resources"
```

3. Publish the Migrations

```
php artisan vendor:publish --provider="Wovosoft\LaravelPermissions\ServiceProvider" --tag="migrations"
```

3. Publish the Seeds

```
php artisan vendor:publish --provider="Wovosoft\LaravelPermissions\ServiceProvider" --tag="seeds"
```

Configuration
-------------

[](#configuration)

1. In `App\User.php` model add the `HasRoles.php` Trait.

```
//other imports goes here
use Spatie\Permission\Traits\HasRoles;

class User extends Authenticatable
{
    use HasRoles;
    // other codes goes here
}
```

2. Now Run

```
php artisan migrate
```

3. Go to `config/laravel-permissions.php` . Add Default Permissions and Roles.

```
