getKey())) { throw new AuthorizationException(); } if (!hash_equals((string) $hash, sha1(Auth::user()->getEmailForVerification()))) { throw new AuthorizationException(); } if (Auth::user()->hasVerifiedEmail()) { return redirect(route('collaborators.dashboard')); } if (Auth::user()->markEmailAsVerified()) { event(new Verified(Auth::user())); } return redirect(route('collaborators.dashboard')); } }