v0.8.0
[0.8.0] - 2023-11-12
BREAKING
- The default domain model stub
model.php.stub
has changed. If stubs were published prior to this release, you may have to delete and re-publish; unless the publishedmodel.php.stub
has been entirely customized with independent logic for your respective application.
Changed
- Implement proper support for custom base models when using
ddd:model
:- If the configured
ddd.base_model
exists (evaluated usingclass_exists
), base model generation is skipped. - If
ddd.base_model
does not exist and falls under a domain namespace, base model will be generated. - Falling under a domain namespace means
Domain\**\Models\**
. - If
ddd.base_model
were set toApp\Models\NonExistentModel
orIlluminate\Database\Eloquent\NonExistentModel
, they fall outside of the domain namespace and will not be generated for you.
- If the configured
Fixed
- Resolve long-standing issue where
ddd:model
would not properly detect whether the configuredddd.base_model
already exists, leading to unintended results.
Chore
- Update composer dependencies.
What's Changed
- Fix custom base model support by @JasperTey in #35
Full Changelog: v0.7.0...v0.8.0