workbench, tests
This commit is contained in:
parent
d83a324eb0
commit
367858c97c
27 changed files with 568 additions and 410 deletions
|
|
@ -7,9 +7,9 @@ use Illuminate\Support\Carbon;
|
|||
|
||||
class CarbonPeriodMapper
|
||||
{
|
||||
public function cast(mixed $value): CarbonPeriodImmutable
|
||||
public function cast(mixed $data): CarbonPeriodImmutable
|
||||
{
|
||||
return new CarbonPeriodImmutable(Carbon::parse($value['start']), Carbon::parse($value['end']));
|
||||
return new CarbonPeriodImmutable(Carbon::parse($data['start']), Carbon::parse($data['end']));
|
||||
}
|
||||
|
||||
public static function rules(): array
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue