repository = $repository; } public function show(string $email, string $hash){ $invite = $this->repository->where('email', $email)->where('hash', $hash)->first(); if($invite){ return view('pages.authentication.registration', ['invite' => $invite]); } return redirect()->route('login'); } }