mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 11:48:05 +00:00
This commit is contained in:
@@ -297,7 +297,7 @@ class GenericRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function rules(): array
|
public function rules(): array
|
||||||
{
|
{
|
||||||
// this is cheating but it works to initialize the collections.
|
// this is cheating, but it works to initialize the collections.
|
||||||
$this->accounts = new Collection();
|
$this->accounts = new Collection();
|
||||||
$this->budgets = new Collection();
|
$this->budgets = new Collection();
|
||||||
$this->categories = new Collection();
|
$this->categories = new Collection();
|
||||||
@@ -306,7 +306,7 @@ class GenericRequest extends FormRequest
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
'start' => 'required|date',
|
'start' => 'required|date',
|
||||||
'end' => 'required|date|after:start',
|
'end' => 'required|date|after_or_equal:start',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user