Skip to content

v0.8.0

Compare
Choose a tag to compare
@JasperTey JasperTey released this 13 Nov 03:45
· 77 commits to main since this release
97f508f

[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 published model.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 using class_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 to App\Models\NonExistentModel or Illuminate\Database\Eloquent\NonExistentModel, they fall outside of the domain namespace and will not be generated for you.

Fixed

  • Resolve long-standing issue where ddd:model would not properly detect whether the configured ddd.base_model already exists, leading to unintended results.

Chore

  • Update composer dependencies.

What's Changed

Full Changelog: v0.7.0...v0.8.0