Skip to content

v1.1.0

Compare
Choose a tag to compare
@jaspertey jaspertey released this 07 Apr 17:01
· 41 commits to main since this release
0897d40

[1.1.0] - 2024-04-07

Added

  • Add ddd:class generator extending Laravel's make:class (Laravel 11 only).
  • Add ddd:interface generator extending Laravel's make:interface (Laravel 11 only).
  • Add ddd:trait generator extending Laravel's make: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

Full Changelog: v1.0.0...v1.1.0