PHPackages                             shadowbane/authorization-module - 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. shadowbane/authorization-module

ActiveLaravel-module[Authentication &amp; Authorization](/categories/authentication)

shadowbane/authorization-module
===============================

0.3.1(5y ago)09MITPHP

Since Sep 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/shadowbane/authorization-module)[ Packagist](https://packagist.org/packages/shadowbane/authorization-module)[ RSS](/packages/shadowbane-authorization-module/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

Authorization Module
====================

[](#authorization-module)

### Modular Authorization package for Laravel Backpack

[](#modular-authorization-package-for-laravel-backpack)

Yet another 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). This module is based on [Backpack\\PermissionManager](https://github.com/Laravel-Backpack/PermissionManager) and [spatie/laravel-permission](https://github.com/spatie/laravel-permission). So if you like the package, please support the original authors.

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

[](#installation)

1. Make sure you've already installed Backpack.
2. Install [nWidart/laravel-modules](https://github.com/nWidart/laravel-modules) and [joshbrw/laravel-module-installer](https://github.com/joshbrw/laravel-module-installer)
3. In your terminal:

    ```
    composer require backpack/permissionmanager
    ```
4. 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 First, add the Spatie\Permission\Traits\HasRoles trait to your User model(s)
    ```
5. Publish the config file &amp; run the migrations

    ```
    php artisan vendor:publish --provider="Modules\Authorization\Providers\AuthorizationServiceProvider" --tag="config"
    ```
6. Add `CrudTrait` and `HasRole` to user model

    ```
