remove id from being required in create carrier
This commit is contained in:
parent
059c111059
commit
6e78c25d8c
3 changed files with 3 additions and 4 deletions
|
|
@ -14,8 +14,8 @@ class CreateCarrier
|
|||
|
||||
public function execute(): Carrier
|
||||
{
|
||||
$carrier = new Carrier($this->dto->id, $this->dto->email);
|
||||
$carrier = new Carrier(null, $this->dto->email);
|
||||
|
||||
return $this->carrierRepo->save($carrier);
|
||||
return $this->carrierRepo->save($carrier);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue