v0.10.0
[0.10.0] - 2024-03-23
Added
- Add
ddd.domain_path
andddd.domain_namespace
to config, to specify the path to the domain layer and root domain namespace more explicitly (replaces the previousddd.paths.domains
config). - Implement
Lunarstorm\LaravelDDD\Factories\HasDomainFactory
trait which can be used on domain models that are unable to extend the base domain model.
Changed
- Default
base-model.php.stub
now utilizes theHasDomainFactory
trait.
Deprecated
- Config
ddd.paths.domains
deprecated in favour ofddd.domain_path
andddd.domain_namespace
. Existing config files published prior to this release should removeddd.paths.domains
and addddd.domain_path
andddd.domain_namespace
accordingly.
/*
|--------------------------------------------------------------------------
| Domain Path
|--------------------------------------------------------------------------
|
| The path to the domain folder relative to the application root.
|
*/
'domain_path' => 'src/Domain',
/*
|--------------------------------------------------------------------------
| Domain Namespace
|--------------------------------------------------------------------------
|
| The root domain namespace.
|
*/
'domain_namespace' => 'Domain',
// Deprecated:
// 'paths' => [
// //
// // Path to the Domain layer.
// //
// 'domains' => 'src/Domain',
// ],
What's Changed
- Refactor domain path and namespace configuration. by @jaspertey in #43
- HasDomainFactory trait implementation. by @jaspertey in #44
Full Changelog: v0.9.0...v0.10.0