PHP code example of jobins / ddd-command

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

    

jobins / ddd-command example snippets




return [
    'application'     => 'App\Application',
    'domain'          => 'App\Domain',

    /**
     * |
     * | Base Controller Path
     * |
     */
    'controller_path' => 'App\Infrastructure\Controllers\Controller',
];



use App\Application\Auth\LoginController;

Route::get('login',[LoginController::class,'index']);
Route::post('login',[LoginController::class,'store']);
 artisan ddd:request LoginRequest auth
 artisan ddd:controller LoginController auth
 artisan ddd:model Transaction Account

php artisan ddd:controller LoginController auth
web.php

php artisan ddd:request LoginRequest auth
app\Domain\Account\Models\Transaction.php

php artisan ddd:model Transaction Account