'required|string', // nordigen redirects only with the ref-property 'lang' => 'string', ]; } public function getTokenContent() { $input = $this->all(); $data = Cache::get($input['ref']); return $data; } public function getCompany() { MultiDB::findAndSetDbByCompanyKey($this->getTokenContent()['company_key']); return Company::where('company_key', $this->getTokenContent()['company_key'])->firstOrFail(); } }