clean up request
This commit is contained in:
parent
dc8adf8378
commit
dbdda5dd03
1 changed files with 0 additions and 2 deletions
|
|
@ -32,8 +32,6 @@ class GenericReportRequest extends Request
|
|||
|
||||
return [
|
||||
'date_range' => 'bail|required|string',
|
||||
// 'start_date' => [Rule::requiredIf($this->date_range === 'custom')],
|
||||
// 'end_date' => [Rule::requiredIf($this->date_range === 'custom')],
|
||||
'end_date' => 'bail|required_if:date_range,custom|nullable|date',
|
||||
'start_date' => 'bail|required_if:date_range,custom|nullable|date',
|
||||
'report_keys' => 'present|array',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue