More strict date validation

This commit is contained in:
James Cole
2025-01-25 04:49:28 +01:00
parent 0986bfbc34
commit 4f7cc7d53b
14 changed files with 26 additions and 26 deletions

View File

@@ -71,8 +71,8 @@ class TestRequest extends FormRequest
public function rules(): array
{
return [
'start' => 'date',
'end' => 'date|after_or_equal:start',
'start' => 'date|after:1900-01-01|before:2099-12-31',
'end' => 'date|after_or_equal:start|after:1900-01-01|before:2099-12-31',
'accounts' => '',
'accounts.*' => 'required|exists:accounts,id|belongsToUser:accounts',
];