PHP code example of mehul / laravel-enterprise-structure

1. Go to this page and download the library: Download mehul/laravel-enterprise-structure 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/ */

    

mehul / laravel-enterprise-structure example snippets


return [
    'paths' => [
        'domains' => app_path('Domains'),
        'application' => app_path('Application'),
    ],

    'namespaces' => [
        'domains' => 'App\\Domains',
        'application' => 'App\\Application',
    ],
];
bash
php artisan vendor:publish --tag=enterprise-structure-config
bash
php artisan enterprise:install
bash
php artisan make:domain User
bash
php artisan make:action User/CreateUser
bash
php artisan make:usecase User/RegisterUser
bash
php artisan pest tests/Feature/MakeDomainTest.php