PHP code example of alibori / laravel-ddd-domain-resources

1. Go to this page and download the library: Download alibori/laravel-ddd-domain-resources 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/ */

    

alibori / laravel-ddd-domain-resources example snippets




declare(strict_types=1);

// config for Alibori/LaravelDddDomainResources package
return [
    /**
     * Here goes the path to your DDD Domains folder.
     */
    'domains_path' => 'app\\Domains',
    /**
     * Here goes all your desired DDD Domain Resources configuration.
     */
    'domains' => [
        /**
         * 'user' => [
         *     'name' => 'User',
         *     'namespace' => 'App\\Domains\\User',
         * ],
         */
    ]
];

php artisan domain:generate user --scaffold

php artisan domain:generate user {file-type}

php artisan domain:generate user use_case
bash
php artisan vendor:publish --tag="ddd-domain-resources-stubs"