James Cole
2023-02-12 18:09:27 +01:00
parent 68222e20f7
commit 80431bae4f

View File

@@ -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',
]; ];
} }
} }