Skip to content

Commit

Permalink
Apply style
Browse files Browse the repository at this point in the history
  • Loading branch information
YunusEmreNalbant committed Mar 4, 2024
1 parent a83ed2a commit 4d92252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Casts/ConfigValueCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function get(Model $model, string $key, mixed $value, array $attributes)
{
return match ($attributes['type']) {
ConfigDataType::BOOLEAN->value => (bool) $value,
ConfigDataType::INTEGER->value => (integer) $value,
ConfigDataType::INTEGER->value => (int) $value,
ConfigDataType::DATE->value => Carbon::createFromFormat('Y-m-d', $value),
ConfigDataType::DATE_TIME->value => Carbon::createFromFormat('Y-m-d H:i', $value),
ConfigDataType::JSON->value => json_decode($value, true),
Expand Down

0 comments on commit 4d92252

Please sign in to comment.