Cast description input to string with default value in StoreUpdateRequest.
This commit is contained in:
@@ -34,7 +34,7 @@ final class StoreUpdateRequest extends FormRequest implements FormRequestDto
|
|||||||
{
|
{
|
||||||
return new StoreUpdate(
|
return new StoreUpdate(
|
||||||
title: $this->input('title'),
|
title: $this->input('title'),
|
||||||
description: $this->input('description'),
|
description: (string) $this->input('description', ''),
|
||||||
storages: $this->storages(),
|
storages: $this->storages(),
|
||||||
isTranslateAutomatically: (bool) $this->input('translate-automatically', false),
|
isTranslateAutomatically: (bool) $this->input('translate-automatically', false),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user