PHP code example of nuewire / acl

1. Go to this page and download the library: Download nuewire/acl 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/ */

    

nuewire / acl example snippets


use Illuminate\Notifications\Notifiable;
use Nuewire\Acl\Concerns\HasNuewireAcl;
use Nuewire\Users\Concerns\NuewireUser;

class User extends Authenticatable
{
    use Notifiable;
    use NuewireUser;
    use HasNuewireAcl;
}
bash
php artisan nuewire:acl:install --migrate [email protected]
php artisan nuewire:acl:sync
bash
php artisan vendor:publish --tag=nuewire-acl-config
text
config/nuewire/acl.php