When configuring the domains path, namespaces are still using 'domains'
funkymonk91 opened this issue · 0 comments
funkymonk91 commented
I updated my config to conform to my project file structure:
config/ddd.php
'paths' => [
//
// Path to the Domain layer.
//
'domains' => 'src/Domain',
I ran php artisan ddd:dto PurchaseOrder PurchaseOrderJobDetailsData
and it put the file in the correct place (src/Domain/PurchaseOrder/Data
).
The contents of the file are:
<?php
namespace Domains\PurchaseOrder\Data;
use Spatie\LaravelData\Data;
class PurchaseOrderJobDetailData extends Data
{
public function __construct(
// ...
) {
}
}