v1.1.0
[1.1.0] - 2024-04-07
Added
- Add
ddd:class
generator extending Laravel'smake:class
(Laravel 11 only). - Add
ddd:interface
generator extending Laravel'smake:interface
(Laravel 11 only). - Add
ddd:trait
generator extending Laravel'smake:trait
(Laravel 11 only). - Allow overriding configured namespaces at runtime by specifying an absolute name starting with /:
# The usual: generate a provider in the configured provider namespace
php artisan ddd:provider Invoicing:InvoiceServiceProvider
# -> Domain\Invoicing\Providers\InvoiceServiceProvider
# Override the configured namespace at runtime
php artisan ddd:provider Invoicing:/InvoiceServiceProvider
# -> Domain\Invoicing\InvoiceServiceProvider
# Generate an event inside the Models namespace (hypothetical)
php artisan ddd:event Invoicing:/Models/EventDoesNotBelongHere
# -> Domain\Invoicing\Models\EventDoesNotBelongHere
# Deep nesting is supported
php artisan ddd:exception Invoicing:/Models/Exceptions/InvoiceNotFoundException
# -> Domain\Invoicing\Models\Exceptions\InvoiceNotFoundException
Fixed
- Internals: Handle a variety of additional edge cases when generating base models and base view models.
What's Changed
- 54 additional laravel 11 generators by @jaspertey in #55
Full Changelog: v1.0.0...v1.1.0