v1.2.0-beta.2 #75
Closed
jaspertey
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A second v1.2.0 pre-release, which refactors the customization of stubs and introduces a more user friendly
ddd:stubcommand to publish one or more stubs selectively. To use this version now:Full summary of changes from v1.1.x below.
Breaking
base_path('stubs/ddd')instead ofresource_path('stubs/ddd'). In other words, they are now co-located alongside the framework's published stubs, within adddsubfolder..stubextension instead of.php.stub(following Laravel's convention).Added
ddd:controllerto generate domain-specific controllers in the application layer.ddd:requestto generate domain-spefic requests in the application layer.ddd:middlewareto generate domain-specific middleware in the application layer.ddd:migrationto generate domain migrations.ddd:seederto generate domain seeders.ddd:publishto publish the config or stubs in a more user friendly manner.ddd:stubto list, search, and publish one or more stubs as needed.php artisan migrate, in addition to the standard applicationdatabase/migrationspath.Changed
ddd:modelnow internally extends Laravel's nativemake:modeland inherits all standard options:--migration|-m--factory|-f--seed|-s--controller --resource --requests|-crR--policy-mfsc--all|-a--pivot|-pddd:cacheis nowddd:optimize(ddd:cacheis still available as an alias).optimizeandoptimize:clearcommands will automatically invokeddd:optimizeandddd:clearrespectively..stubextension instead of.php.stub(following Laravel's convention).stubs/ddd/*.stub(allows customizing stub for ddd only)stubs/*.stub(shared by both make:* and ddd:*)Deprecated
config('ddd.base_model')is nownullby default.ddd:modelextends laravel'smake:modeland therefore inherits the native stubs.What's Changed
Full Changelog: v1.1.3...v1.2.0-beta.2
This discussion was created from the release v1.2.0-beta.2.
Beta Was this translation helpful? Give feedback.
All reactions