PHP code example of amims71 / lara-shell

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

    

amims71 / lara-shell example snippets




return [
    'command' => ['name' => 'shell', 'aliases' => ['terminal', 'repl']],

    'driver' => 'auto',

    'long_running' => [
        'serve',
        'queue:work',
        'queue:listen',
        'schedule:work',
        'horizon',
        'horizon:work',
        'reverb:start',
        'pail',
        'octane:start',
        'websockets:serve',
    ],

    'guard' => [
        'environments' => ['production'],
        'block' => [],
        'confirm' => [
            'migrate', 'migrate:fresh', 'migrate:refresh', 'migrate:reset',
            'migrate:rollback', 'db:wipe', 'db:seed', 'key:generate',
            'cache:clear', 'config:clear', 'route:clear', 'view:clear',
            'optimize:clear', 'queue:flush', 'queue:forget', 'model:prune',
            'telescope:clear', 'horizon:clear',
        ],
    ],

    'php_escape' => ';',
    'macro_sigil' => '@',
];



return [
    // First-word rewrites: name => expansion
    'aliases' => [
        'fresh' => 'migrate:fresh --seed',
        'up'    => 'migrate',
    ],

    // Named step sequences invoked with @name. Each step is a line:
    // an artisan command, an alias, or another @macro.
    'macros' => [
        'deploy' => [
            'migrate --force',
            'config:cache',
            'route:cache',
            'queue:restart',
        ],
        'reset' => [
            '@deploy',            // macros may call other macros
            'db:seed',
        ],
    ],
];
text
$ php artisan shell
artisan> serve
  INFO  Server running on [http://127.0.0.1:8000].
artisan> route:list
artisan> migrate
bash
php artisan vendor:publish --tag=lara-shell-config
bash
php artisan shell