Laravel Permit

Laravel Permit is an authorization and ACL package for laravel. Its fast and more customizable. You can easily handle role based ACL or specific user wise permission. So, Lets start a journey with Laravel Permit.

laravel permission

Installation

You can start it from composer. Go to your terminal and run this command from your project root directory.

composer require nahid/permit

Wait for a while, its download all dependencies.

Configurations

After complete installation then you have to configure it. First copy these line paste it in config/app.php where providers array are exists.

Nahid\Permit\PermitServiceProvider::class,

and add the line for facade support

'Permit'    => Nahid\Permit\Facades\Permit::class,

hmm, Now you have to run this command to publish necessary files.

php artisan vendor:publish --provider=Nahid\Permit\PermitServiceProvider