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
-
A second v1.2.0 pre-release, which refactors the customization of stubs and introduces a more user friendly
ddd:stub
command 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 addd
subfolder..stub
extension instead of.php.stub
(following Laravel's convention).Added
ddd:controller
to generate domain-specific controllers in the application layer.ddd:request
to generate domain-spefic requests in the application layer.ddd:middleware
to generate domain-specific middleware in the application layer.ddd:migration
to generate domain migrations.ddd:seeder
to generate domain seeders.ddd:publish
to publish the config or stubs in a more user friendly manner.ddd:stub
to list, search, and publish one or more stubs as needed.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).optimize
andoptimize:clear
commands will automatically invokeddd:optimize
andddd:clear
respectively..stub
extension 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 nownull
by default.ddd:model
extends laravel'smake:model
and 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