PHPackages                             echods/roles - 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. echods/roles

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

echods/roles
============

Roles and permissions for application

2.0.1(8mo ago)2807↓100%1[4 issues](https://github.com/echods/Roles/issues)MITPHPPHP ^8.0.2

Since Mar 28Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/echods/Roles)[ Packagist](https://packagist.org/packages/echods/roles)[ RSS](/packages/echods-roles/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (23)Used By (0)

Echods Roles
============

[](#echods-roles)

Laravel based roles for Laravel 9+.

Installing the package
----------------------

[](#installing-the-package)

```
composer require echods/roles

```

For Laravel &lt; 5.8
--------------------

[](#for-laravel--58)

[See 1.1 Documentation](https://github.com/echods/Roles/blob/1.1.4/README.md)

Publish config files
--------------------

[](#publish-config-files)

Below will publish all files that you can configure.

```
$ php artisan vendor:publish --tag=roles

```

Or you can publish these files individually.

```
$ php artisan vendor:publish --tag=roles-config
$ php artisan vendor:publish --tag=roles-migrations
$ php artisan vendor:publish --tag=roles-seeders
$ php artisan vendor:publish --tag=roles-models
$ php artisan vendor:publish --tag=roles-traits

```

Modify config file to set roles
-------------------------------

[](#modify-config-file-to-set-roles)

Add the roles you need for your application and descriptions in the config file. Also change if you would like big integer migrations or note.

```
