diff --git a/app/Casts/ConfigType.php b/app/Casts/ConfigType.php index 002d641..51d57f4 100644 --- a/app/Casts/ConfigType.php +++ b/app/Casts/ConfigType.php @@ -16,10 +16,11 @@ public function get(Model $model, string $key, mixed $value, array $attributes): { if (request()->isMethod('POST') || request()->isMethod('PUT')) { return match (true) { + $value === 'textarea' => 'string', $value === 'text' => 'string', $value === 'bool' => 'boolean', - $value === 'files' => 'file', $value === 'json' => 'array', + $value === 'files' => 'file', in_array($value, ['number', 'integer', 'int']) => 'numeric', default => $value, };