Fix API endpoint

This commit is contained in:
James Cole 2022-12-24 08:44:33 +01:00
parent 5f6c84ab4c
commit 12008fb0e9
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
4 changed files with 4 additions and 4 deletions

View File

@ -84,7 +84,7 @@ class TestRequest extends FormRequest
{
return [
'start' => 'date',
'end' => 'date|after:start',
'end' => 'date|after_or_equal:start',
'accounts' => '',
'accounts.*' => 'required|exists:accounts,id|belongsToUser:accounts',
];

View File

@ -73,7 +73,7 @@ class TriggerRequest extends FormRequest
{
return [
'start' => 'date',
'end' => 'date|after:start',
'end' => 'date|after_or_equal:start',
'accounts' => '',
'accounts.*' => 'exists:accounts,id|belongsToUser:accounts',
];

View File

@ -73,7 +73,7 @@ class TestRequest extends FormRequest
{
return [
'start' => 'date',
'end' => 'date|after:start',
'end' => 'date|after_or_equal:start',
'accounts' => '',
'accounts.*' => 'exists:accounts,id|belongsToUser:accounts',
];

View File

@ -73,7 +73,7 @@ class TriggerRequest extends FormRequest
{
return [
'start' => 'date',
'end' => 'date|after:start',
'end' => 'date|after_or_equal:start',
];
}