v1.2.0-beta.1
Pre-release
Pre-release
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 applicationdatabase/migrations
path.
Changed
ddd:model
now internally extends Laravel's nativemake: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 nowddd:optimize
(ddd:cache
is still available as an alias).- For Laravel 11.27.1+, the framework's
optimize
andoptimize:clear
commands will automatically invokeddd:optimize
andddd:clear
respectively.
Deprecated
- Domain base models are no longer required by default, and
config('ddd.base_model')
is nownull
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