get('type', 'default'); return $this->mapAccountTypes($type); } public function getDate(): Carbon { return $this->getCarbonDate('date'); } /** * The rules that the incoming request must be matched against. */ public function rules(): array { return [ 'date' => 'date|after:1900-01-01|before:2099-12-31', 'start' => 'date|after:1900-01-01|before:2099-12-31|before:end|required_with:end', 'end' => 'date|after:1900-01-01|before:2099-12-31|after:start|required_with:start', ]; } }