refactor: use Status enum instead of hardcoded string in scheduled_at validation
This commit is contained in:
parent
09533b0f84
commit
fbe49e917f
2 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ public function rules(): array
|
|||
'nullable',
|
||||
'date',
|
||||
Rule::when(
|
||||
$this->input('status') === 'scheduled',
|
||||
$this->input('status') === Status::Scheduled->value,
|
||||
['after:now']
|
||||
),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public function rules(): array
|
|||
'nullable',
|
||||
'date',
|
||||
Rule::when(
|
||||
$this->input('status') === 'scheduled',
|
||||
$this->input('status') === Status::Scheduled->value,
|
||||
['after:now']
|
||||
),
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue