PHP code example of tanwencn / supervisor

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

    

tanwencn / supervisor example snippets


'logs' => [
            'driver' => 'local',
            'root' => storage_path('logs'),
        ]

public function boot()
{
    $this->gateSupervisor();
}

protected function gateSupervisor()
{
    Gate::define('viewSupervisor', function ($user) {
        return in_array($user->name, [
            'tanwencn',
        ]);
    });
}
bash
php artisan supervisor:install
config/filesystems.php
config/supervisor.php
App/Providers/AppServiceProvider.php