PHP code example of artisan-build / agent-os-installer

1. Go to this page and download the library: Download artisan-build/agent-os-installer 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/ */

    

artisan-build / agent-os-installer example snippets


'viewer' => [
    'enabled' => env('AGENT_OS_VIEWER_ENABLED', true),
    'route_prefix' => env('AGENT_OS_ROUTE_PREFIX', 'agent-os'),
    'middleware' => ['web'],
    'gate' => null, // Optional gate name for authorization
    'paths' => [], // Additional documentation paths to 

'viewer' => [
    'gate' => 'view-agent-os-docs',
],

Gate::define('view-agent-os-docs', function ($user) {
    return $user->is_admin;
});

'viewer' => [
    'middleware' => ['web', 'auth', 'can:view-docs'],
],