-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.2] Official Release #77
Conversation
* WIP experimentation * Fix styling * Refactor OverridesHandle to HandleHooks * Fix styling * WIP * WIP: Refactoring ddd:model, generate application layer objects, and more. * Fix styling * Replace HasFactory with HasDomainFactory. * Fix styling * Normalize paths for tests on Windows. * Keep phpstan happy. * Fix styling * Add header block. * Remove stray methods. * Update readme. * Further refinements and WIP. * Update change notes. * Fix phpstan issue. * Fix test. * Normalize paths for windows. * Support application layer paths outside app folder. * Add peer dependencies section. * Document the Application Layer. * Update wording. * Minor wording. * Support optimize commands in Laravel 11.27.1 * Update cache tests. * Ensure optimize:clear after each test. * Update internals and implement custom namespace resolving. * Apply namespace resolver to all types. * Refactor cache/optimize commands. * Minor changes. * Wrap command column with backticks. * Simplify ddd.application_layer to ddd.application * Fix styling * Update readme/config wordings. --------- Co-authored-by: JasperTey <[email protected]>
* Updates: - normalize domain stub trait across all domain generators - ensure ddd:controller is able to check for base controller existence - refine ddd:model stub replacements * Introduce ddd:publish and ddd:stub commands. * Normalize the resolution of published stubs. * Ensure post-build replacements are skipped in ddd:model when using custom stubs. * Implement ddd:publish and ddd:stub commands. * Refinements to readme and stub documentation. --------- Co-authored-by: JasperTey <[email protected]>
- adds support for custom layers - refactor and finalize the application layer config - refactor ddd generator internals - adds ddd:config utility command - adds custom object resolution via DDD::resolveObjectSchemaUsing() - refactor test coverage --------- Co-authored-by: JasperTey <[email protected]>
Hey @pelmered, FYI: the 1.2 implementation has been finalized, and I was able to refactor the internals to support your customization scenario fully. See: https://github.com/lunarstorm/laravel-ddd/tree/next?tab=readme-ov-file#custom-object-resolution The new Custom Layer support will also allow you to interact with your other layers: src/Integrations and src/Support. Would be great if you're able to test things out and provide any final feedback before this goes live. composer require lunarstorm/laravel-ddd:dev-next When upgrading, the existing ddd.php config file can be auto-updated and rebuilt using If all goes well, I hope to merge and tag the official 1.2.0 release sometime this week! |
Awesome! Thank you. |
- ensure injected base controller import isn't separated from other imports - resolve issues with laravel 10 compatibility
Preparing to merge the final 1.2 release into main.
To use this version now:
Upgrade guide: https://github.com/lunarstorm/laravel-ddd/blob/next/UPGRADING.md
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 a ddd subfolder..stub
extension instead of.php.stub
(following Laravel's convention).Added
Infrastructure
,Integrations
, etc.:ddd:config
to help manage the package's configuration over time.ddd:stub
to publish one or more stubs selectively.ddd:controller
to generate domain-specific controllers.ddd:request
to generate domain-spefic requests.ddd:middleware
to generate domain-specific middleware.ddd:migration
to generate domain migrations.ddd:seeder
to generate domain seeders.ddd:stub
to manage stubs.php artisan migrate
, in addition to the standard applicationdatabase/migrations
path.DDD::resolveObjectSchemaUsing()
.Changed
ddd:model
now 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
(ddd:cache
) andddd:clear
respectively.Deprecated
config('ddd.base_model')
is nownull
by default.php artisan vendor:publish --tag="ddd-stubs"
. Instead, usephp artisan ddd:stub
to manage them.Resolves #61