Skip to content

v1.2.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@JasperTey JasperTey released this 22 Oct 13:59
· 8 commits to next since this release
c944c79

There are still a few things to iron out before a final 1.2.0 release, but I wanted to get this out as a pre-release for now to keep things moving.

Added

  • Experimental: Ability to configure the Application Layer, to generate domain objects that don't typically belong inside the domain layer.
    // In config/ddd.php
    'application' => [
        'path' => 'app/Modules',
        'namespace' => 'App\Modules',
        'objects' => [
            'controller',
            'request',
            'middleware',
        ],
    ],
  • Added ddd:controller to generate domain-specific controllers in the application layer.
  • Added ddd:request to generate domain-spefic requests in the application layer.
  • Added ddd:middleware to generate domain-specific middleware in the application layer.
  • Added ddd:migration to generate domain migrations.
  • Added ddd:seeder to generate domain seeders.
  • Migration folders across domains will be registered and scanned when running php artisan migrate, in addition to the standard application database/migrations path.

Changed

  • ddd:model now internally 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).
  • For Laravel 11.27.1+, the framework's optimize and optimize:clear commands will automatically invoke ddd:optimize and ddd:clear respectively.

Deprecated

  • Domain base models are no longer required by default, and config('ddd.base_model') is now null by default.

What's Changed

  • [1.2] ddd:model options, migrations, application layer by @JasperTey in #69

Full Changelog: v1.1.2...v1.2.0-beta.1