PHP code example of mazfreelance / laravel-command-generator

1. Go to this page and download the library: Download mazfreelance/laravel-command-generator 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/ */

    

mazfreelance / laravel-command-generator example snippets


'providers' => [
    // Other service providers...

    Mazfreelance\LaravelCommandGenerator\ServiceProvider::class,
],

'namespace' => [
    'action' => 'App\\Actions\\',
    'dto' => 'App\\DTO\\',
]

$app->register(Mazfreelance\LaravelCommandGenerator\ServiceProvider::class);

// If install version 2.1.0,
$app->register(Spatie\LaravelData\LaravelDataServiceProvider::class);

config(['custom-command.action.namespace' => "App\\Actions\\"]);
config(['custom-command.dto.namespace' => "App\\DTO\\"]);
bash
php artisan vendor:publish --provider="Mazfreelance\LaravelCommandGenerator\ServiceProvider::class"