PHPackages                             buzz/laravel-advanced-authorization - 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. buzz/laravel-advanced-authorization

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

buzz/laravel-advanced-authorization
===================================

Package for handling advanced authorization (role and permission) in Laravel 5.\*

v2.2.2(10y ago)0551[2 issues](https://github.com/thinhbuzz/laravel-advanced-authorization/issues)MITPHPPHP &gt;=5.4.0

Since Dec 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/thinhbuzz/laravel-advanced-authorization)[ Packagist](https://packagist.org/packages/buzz/laravel-advanced-authorization)[ Docs](https://github.com/thinhbuzz/laravel-advanced-authorization)[ RSS](/packages/buzz-laravel-advanced-authorization/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (25)Used By (0)

Advanced authorization in Laravel &gt;= 5.5
===========================================

[](#advanced-authorization-in-laravel--55)

> development mode

Check list
----------

[](#check-list)

- Cache
- Super user
- ...
- [Installation](#installation)

    - [Composer](#composer)
    - [Middleware](#middleware)
- [Configuration](#configuration)

    - [Pubslish](#pubslish)
    - [Config package](#config-package)
    - [Config model](#config-model)
- [Instruction](#instruction)

    - [Creating data](#creating-data)
    - [Attach/ detach role and permission](#attach-detach-data)
    - [Checking role/ permission/ level](#checking-role-permission-level)
    - [Use Middleware](#check-with-middleware)

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

[](#installation)

### Composer

[](#composer)

Run command:

```
composer require buzz/laravel-advanced-authorization 3.*

```

Or open composer.json, insert into bellow code and run command `composer update`

```
"buzz/laravel-advanced-authorization": "3.*",

```

### Middleware

[](#middleware)

Package already register middleware `permission`

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

[](#configuration)

- So publish config, migrations, models you can run command

```
php artisan vendor:publish --provider="Buzz\Authorization\AuthorizationServiceProvider"

```

And after that run command: `php artisan migrate` (maybe you want edit migration file before run this command)

##### User model

[](#user-model)

You need to remove trait `Authorizable` and contract `AuthorizableContract` (default of laravel).

```
