refactor: use Status enum instead of hardcoded string in scheduled_at validation

This commit is contained in:
Paulo Castellano 2026-04-01 14:29:03 -03:00
parent 09533b0f84
commit fbe49e917f
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ public function rules(): array
'nullable',
'date',
Rule::when(
$this->input('status') === 'scheduled',
$this->input('status') === Status::Scheduled->value,
['after:now']
),
],

View file

@ -26,7 +26,7 @@ public function rules(): array
'nullable',
'date',
Rule::when(
$this->input('status') === 'scheduled',
$this->input('status') === Status::Scheduled->value,
['after:now']
),
],