PHP code example of xammie / make-commands

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

    

xammie / make-commands example snippets




namespace App\Actions;

class CreateUserAction
{
    public function handle()
    {
        //
    }
}

return [
    'namespaces' => [
        'action' => 'Actions',
        'collection' => 'Collections',
        'config' => 'config',
        'contract' => 'Contracts',
        'dto' => 'Dtos',
        'enum' => 'Enums',
        'interface' => 'Interfaces',
        'repository' => 'Repositories',
        'service' => 'Services',
        'trait' => 'Traits',
    ],
];
bash
php artisan make:action CreateUserAction
bash
php artisan vendor:publish --tag="make-commands-stubs"