$attributes */ public function get(Model $model, string $key, mixed $value, array $attributes): ?Carbon { if ('' === $value || null === $value) { return null; } $timeZone = $attributes[sprintf('%s_tz', $key)] ?? config('app.timezone'); return Carbon::parse($value, $timeZone)->setTimezone(config('app.timezone')); } /** * Prepare the given value for storage. * * @param array $attributes */ public function set(Model $model, string $key, mixed $value, array $attributes): mixed { return $value; } }