getCarbonDate('date'); } public function getAccountTypes(): array { $type = (string)$this->get('type', 'default'); return $this->mapAccountTypes($type); } /** * 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', ]; } }