user()->isAdmin(); } public function rules() { return [ 'start_date' => 'string|date', 'end_date' => 'string|date', 'is_income_billed' => 'required|bail|bool', 'is_expense_billed' => 'required|bail|bool', 'include_tax' => 'required|bail|bool', 'date_range' => 'required|bail|string', 'send_email' => 'bool', ]; } }