PHP code example of betagt / useraclmanager

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

    

betagt / useraclmanager example snippets


   'providers' => [
       ...
       \BetaGT\UserAclManager\UserAclManagerServiceProvider::class
   ],

   'api' => [
       'driver' => 'passport',
       'provider' => 'users',
   ],

   'providers' => [
       'users' => [
           'driver' => 'eloquent',
           'model' => \BetaGT\UserAclManager\Models\User::class,
       ],

   'model' => \BetaGT\UserAclManager\Models\User::class,

   \BetaGT\UserAclManager\UserAclManager::routes();

   Passport::routes();
   Passport::tokensExpireIn(Carbon::now()->addHour(5));
   Passport::refreshTokensExpireIn(Carbon::now()->addDay(1));
shell
php artisan vendor:publish --force
shell
php artisan migrate
shell
php artisan passport:install
shell
php artisan auditing:install
shell
php artisan migrate --seed

php artisan migrate
php artisan db:seed