get('type', 'default'); return $this->mapAccountTypes($type); } /** * Get all data from the request. */ 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', ]; } }