. */ declare(strict_types=1); namespace FireflyIII\Http\Requests; /** * @codeCoverageIgnore * Class BudgetIncomeRequest. */ class BudgetIncomeRequest extends Request { /** * @return bool */ public function authorize() { // Only allow logged in users return auth()->check(); } /** * @return array */ public function rules() { // fixed return [ 'amount' => 'numeric|required|min:0', 'start' => 'required|date|before:end', 'end' => 'required|date|after:start', ]; } }