PHP code example of roshan-dhungana / rbac-kit

1. Go to this page and download the library: Download roshan-dhungana/rbac-kit library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

roshan-dhungana / rbac-kit example snippets


protected $policies = [
		\App\Models\Post::class => \RbacKit\Policies\PostPolicy::class,
];
bash
composer tall
php artisan vendor:publish --tag=rbac-kit-seeder
php artisan db:seed --class=RolePermissionSeeder
php artisan serve