Organize your Laravel app into Domain-Driven Design layers.
Laravel DDD helps you organize a Laravel app using Domain-Driven Design (DDD) layers, instead of the framework's default app/ folder.
ddd:install sets up the layer folders and registers their namespaces in your composer.json.ddd:make generates new classes straight into the right layer.Install the package with Composer:
composer require foxws/laravel-ddd
You can publish the config file if you want to customize it:
php artisan vendor:publish --tag="ddd-config"
Install the DDD layer structure, then generate classes into it:
php artisan ddd:install
php artisan ddd:make CreateInvoice --type=action --domain=Billing
ddd:install, and ddd:make.config/ddd.php option.Looking for Laravel Essentials' sensible defaults (Model::shouldBeStrict(), URL::forceHttps(), and more)? Those live in a separate package, foxws/laravel-essentials.