PHP code example of sven / artisan-shortcuts

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

    

sven / artisan-shortcuts example snippets


return [
    'custom-command' => [
        FirstCommand::class => [
            '--option' => 'value',
        ],
        SecondCommand::class,
    ],
];

return [
    'ide' => [
        GeneratorCommand::class,
        ModelsCommand::class => ['--nowrite' => true],
        MetaCommand::class,
    ],
];

return [
    'clear' => [
        'cache:clear',
        'config:clear',
        'view:clear',
    ],
];
bash
$ php artisan vendor:publish