PHPackages                             sergmoro1/laravel-rbac - 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. sergmoro1/laravel-rbac

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

sergmoro1/laravel-rbac
======================

Role Based Access Control (RBAC) for Laravel based on Yii3 package

v1.0.0(1y ago)06MITPHPPHP ^8.1|^8.2

Since May 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/sergmoro1/laravel-rbac)[ Packagist](https://packagist.org/packages/sergmoro1/laravel-rbac)[ RSS](/packages/sergmoro1-laravel-rbac/feed)WikiDiscussions main Synced 1mo ago

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

Laravel RBAC
============

[](#laravel-rbac)

This package adapts [Yii Role-Based Access Control](https://github.com/yiisoft/rbac) with [PHP storage](https://github.com/yiisoft/rbac-php) to Laravel.

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

[](#installation)

```
composer require sergmoro1/laravel-rbac

```

Publish RBAC sample
-------------------

[](#publish-rbac-sample)

```
php artisan vendor:publish --tag=rbac-sample

```

After sample publishing the class `App\Concole\Commands\Rbac` can be used as the basis of your own access system.

Bind `AccessCheckerInterface` with its implimentation
-----------------------------------------------------

[](#bind-accesscheckerinterface-with-its-implimentation)

Make changes to the file `App\Providers\AppServiceProvider`.

```
