PHPackages                             devcuongnguyen/permissionmanager - 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. devcuongnguyen/permissionmanager

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

devcuongnguyen/permissionmanager
================================

Users and permissions management interface for Laravel 5 using Backpack CRUD.

1.0.0(2y ago)0601proprietaryPHP

Since Jan 9Pushed 2y agoCompare

[ Source](https://github.com/devcuongnguyen/PermissionManager)[ Packagist](https://packagist.org/packages/devcuongnguyen/permissionmanager)[ Docs](https://github.com/laravel-backpack/permissionmanager)[ RSS](/packages/devcuongnguyen-permissionmanager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (1)

Backpack\\PermissionManager
===========================

[](#backpackpermissionmanager)

[![Latest Version on Packagist](https://camo.githubusercontent.com/426e82c8f0bd2f7d26e7d3edb0feb7d3b0b884e9b70fcc5e83fc59376a9cd70f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6261636b7061636b2f7065726d697373696f6e6d616e616765722e7376673f7374796c653d666c61742d737175617265)](link-packagist)[![Software License](https://camo.githubusercontent.com/5a202d5327ab4ae3bf5cc50fcfa3d2f0823d818a4f115a027d8176dcb996c4d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d6475616c2d626c75653f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/2edb038ea803ae009d85f8be62f76435fc8a5a05bf81736fa16e7495fadef869/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c61726176656c2d6261636b7061636b2f7065726d697373696f6e6d616e616765722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/laravel-backpack/permissionmanager)[![Quality Score](https://camo.githubusercontent.com/606c42fd2e6e07c56ca364dec368ac93d328451fab9bbcee4a8b00d880aaa51c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d6261636b7061636b2f7065726d697373696f6e6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-backpack/permissionmanager)[![Style CI](https://camo.githubusercontent.com/8e84c6572fc87018a57dd843fcda55ef2953b4843ccb65ff27559850443b9f2d/68747470733a2f2f7374796c6563692e696f2f7265706f732f35383734303032302f736869656c64)](https://styleci.io/repos/58740020)[![Total Downloads](https://camo.githubusercontent.com/c1e6eca0d24a1da7fb5f1dc0abc4f44d445c4e22251cbab44fbafa1adcf44d51/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6261636b7061636b2f7065726d697373696f6e6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/backpack/permissionmanager)

Admin interface for [spatie/laravel-permission](https://github.com/spatie/laravel-permission). It allows admins to easily add/edit/remove users, roles and permissions, using [Laravel Backpack](https://laravelbackpack.com).

As opposed to some other packages:

- a user can have multiple roles;
- a user can have extra permissions, in addition to the permissions on the roles he has;

This package is just a user interface for [spatie/laravel-permission](https://github.com/spatie/laravel-permission). It will install it, and let you use its API in code. Please refer to their README for more information on how to use in code.

[![Edit a user in Backpack/PermissionManager](https://user-images.githubusercontent.com/1032474/149489620-a3e54d6e-db5f-4241-9afc-dc9451e54b64.gif)](https://user-images.githubusercontent.com/1032474/149489620-a3e54d6e-db5f-4241-9afc-dc9451e54b64.gif)

> ### Security updates and breaking changes
>
> [](#security-updates-and-breaking-changes)
>
> Please **[subscribe to the Backpack Newsletter](http://backpackforlaravel.com/newsletter)** so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months.

Install
-------

[](#install)

1. This package assumes you've already installed [Backpack for Laravel](https://backpackforlaravel.com). If you haven't, please [install Backpack first](https://backpackforlaravel.com/docs/3.5/installation).
2. In your terminal:

```
composer require backpack/permissionmanager
```

2. Finish all installation steps for [spatie/laravel-permission](https://github.com/spatie/laravel-permission#installation), which as been pulled as a dependency. Run its migrations. Publish its config files. Most likely it's:

```
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="migrations"
php artisan migrate
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="config"
// then, add the Spatie\Permission\Traits\HasRoles trait to your User model(s)
```

3. Publish `backpack\permissionmanager` config file &amp; the migrations:

```
php artisan vendor:publish --provider="Backpack\PermissionManager\PermissionManagerServiceProvider" --tag="config" --tag="migrations"
```

> Note: *We recommend you to publish only the config file and migrations, but you may also publish lang and routes.*

4. Run the migrations:

```
php artisan migrate
```

5. The package assumes it's ok to use the default Backpack user model (most likely `App\Models\User` to administer Users. Use a different one if you'd like by changing the user model in the `config/backpack/permissionmanager.php` file. Any model you're using, make sure it's using the `CrudTrait` and `HasRoles` traits:

```
