fix: scheduled_at after:now only for 'scheduled' status, not 'publishing' (publish now)

This commit is contained in:
Paulo Castellano 2026-04-01 14:28:24 -03:00
parent 0bca140cd9
commit 09533b0f84
5 changed files with 5 additions and 2 deletions

View file

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

View file

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

1
lang/php_en.json Normal file

File diff suppressed because one or more lines are too long

1
lang/php_es.json Normal file

File diff suppressed because one or more lines are too long

1
lang/php_pt-BR.json Normal file

File diff suppressed because one or more lines are too long