Skip to content

Releases: jaspertey/laravel-ddd

v3.0.1

22 May 12:06
570a411

Choose a tag to compare

[3.0.1] - 2026-05-22

Changed

  • ddd:upgrade now delegates config upgrade to DDD::config()->syncWithLatest()->save() instead of duplicating the logic inline.

Removed

  • Dropped legacy 0.x config upgrade compatibility from ddd:upgrade

What's Changed

Full Changelog: v3.0.0...v3.0.1

v3.0.0

21 May 11:48
9114aef

Choose a tag to compare

The package has a new home.

composer require tey/laravel-ddd:^3.0

Upgrading from v2? Update to lunarstorm/laravel-ddd v2.1.2 first — it includes a one-command upgrade path:

composer require lunarstorm/laravel-ddd:"^2.1.2"
php artisan ddd:upgrade

ddd:upgrade handles the composer swap, namespace migration, and config update automatically. See UPGRADING for details.


What changed

  • Package renamed: lunarstorm/laravel-dddtey/laravel-ddd
  • PHP namespace: Lunarstorm\LaravelDDDTey\LaravelDDD
  • Repository moved to jaspertey/laravel-ddd

No functional changes — all features from v2 carry over.

v2.1.2

20 May 14:34
e454ecf

Choose a tag to compare

Important

Final v2 release. The package has moved to tey/laravel-ddd in v3 — this release makes upgrading a one-command operation.

Update to v2.1.2, then run ddd:upgrade:

composer update lunarstorm/laravel-ddd
php artisan ddd:upgrade

ddd:upgrade will handle the rest — composer swap, namespace migration, and config update.

v2.1.1

24 Mar 15:32
8104d10

Choose a tag to compare

[2.1.1] - 2026-03-24

Added

  • Domain event listener and subscriber auto-discovery via ddd.autoload.listeners (opt-in, disabled by default).

What's Changed

New Contributors

Full Changelog: v2.1.0...v2.1.1

v2.1.0

23 Mar 02:13
76be1fd

Choose a tag to compare

[2.1.0] - 2026-03-22

Added

  • Laravel 13 support.

Changed

  • Minimum PHP version is now 8.3 (dropped PHP 8.2 support).

Chore

  • Bump dependencies.
  • Resolve test issues on CI.

What's Changed

New Contributors

Full Changelog: v2.0.2...v2.1.0

v2.0.2

25 Jul 02:07
959c685

Choose a tag to compare

[2.0.2] - 2025-07-24

Added

  • Add generics to HasDomainFactory trait for improved static analysis.

What's Changed

  • Add generic Factory on HasDomainFactory trait by @panyamin in #94

New Contributors

Full Changelog: v2.0.1...v2.0.2

v2.0.1

09 Jul 16:29
1ecf4a1

Choose a tag to compare

[2.0.1] - 2025-07-09

Added

  • Ensure domain migration folders are also pruned when pruning migrations via php artisan schema:dump --prune.

What's Changed

  • Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 by @dependabot in #89
  • Bump stefanzweifel/git-auto-commit-action from 5 to 6 by @dependabot in #90
  • Ensure domain migrations are pruned when running schema:dump --prune by @atom1285 in #91
  • Add domain migration pruning tests by @jaspertey in #93

New Contributors

Full Changelog: v2.0.0...v2.0.1

v2.0.0

02 Mar 16:37
ca9aecf

Choose a tag to compare

[2.0.0] - 2025-03-02

Chore

  • Add support for Laravel 12.
  • Minimum PHP version is now 8.2.
  • Minimum Laravel 11 version is now 11.44.
  • Drop support for Laravel 10.

What's Changed

Full Changelog: v1.2.1...v2.0.0

v1.2.1

17 Feb 16:55
540e4e0

Choose a tag to compare

[1.2.1] - 2025-02-17

Fixed

  • Ensure deeply-nested subdomains specified in dot notation are normalized to slashes when generating the objects into their destination path.

Chore

  • Bump dependencies.

What's Changed

Full Changelog: v1.2.0...v1.2.1

v1.2.0

23 Nov 06:24
5980ead

Choose a tag to compare

🔥 1.2 is a major update with several new features and breaking changes (for some). Use php artisan ddd:config update to rebuild your existing config file according to the latest version, and be sure to review the Upgrade Guide for full details about upgrading from 1.1.x.

[1.2.0] - 2024-11-23

Breaking

  • Stubs are now published to base_path('stubs/ddd') instead of resource_path('stubs/ddd'). In other words, they are now co-located alongside the framework's published stubs, within a ddd subfolder.
  • Published stubs now use .stub extension instead of .php.stub (following Laravel's convention).
  • If you are using published stubs from pre 1.2, you will need to refactor your stubs accordingly.

Added

  • Support for the Application Layer, to generate domain-specific objects that don't belong directly in the domain layer:
    // In config/ddd.php
    'application_path' => 'app/Modules',
    'application_namespace' => 'App\Modules',
    'application_objects' => [
        'controller',
        'request',
        'middleware',
    ],
  • Support for Custom Layers, additional top-level namespaces of your choosing, such as Infrastructure, Integrations, etc.:
    // In config/ddd.php
    'layers' => [
        'Infrastructure' => 'src/Infrastructure',
    ],
  • Added config utility command ddd:config to help manage the package's configuration over time.
  • Added stub utility command ddd:stub to publish one or more stubs selectively.
  • Added ddd:controller to generate domain-specific controllers.
  • Added ddd:request to generate domain-spefic requests.
  • Added ddd:middleware to generate domain-specific middleware.
  • Added ddd:migration to generate domain migrations.
  • Added ddd:seeder to generate domain seeders.
  • Added ddd:stub to manage stubs.
  • Migration folders across domains will be registered and scanned when running php artisan migrate, in addition to the standard application database/migrations path.
  • Ability to customize generator object naming conventions with your own logic using DDD::resolveObjectSchemaUsing().

Changed

  • ddd:model now extends Laravel's native make:model and inherits all standard options:
    • --migration|-m
    • --factory|-f
    • --seed|-s
    • --controller --resource --requests|-crR
    • --policy
    • -mfsc
    • --all|-a
    • --pivot|-p
  • ddd:cache is now ddd:optimize (ddd:cache is still available as an alias).
  • Since Laravel 11.27.1, the framework's optimize and optimize:clear commands will automatically invoke ddd:optimize (ddd:cache) and ddd:clear respectively.

Deprecated

  • Domain base models are no longer required by default, and config('ddd.base_model') is now null by default.
  • Stubs are no longer published via php artisan vendor:publish --tag="ddd-stubs". Instead, use php artisan ddd:stub to manage them.

What's Changed

Full Changelog: v1.1.3...v1.2.0