Inheritance: extends Illuminate\Support\Facades\Facade
コード例 #1
0
 /**
  * Show the verification error view.
  *
  * @return Response
  */
 public function getVerificationError()
 {
     if (UserVerification::isVerified(auth()->user())) {
         return redirect($this->redirectIfVerified());
     }
     return view($this->verificationErrorView());
 }
コード例 #2
0
 /**
  * Handle the user verification.
  *
  * @param  string  $token
  * @return Response
  */
 public function getVerification(Request $request, $token)
 {
     $this->validateRequest($request);
     try {
         UserVerification::process($request->input('email'), $token, $this->userTable());
     } catch (UserNotFoundException $e) {
         return redirect($this->redirectIfVerificationFails());
     } catch (UserIsVerifiedException $e) {
         return redirect($this->redirectIfVerified());
     } catch (TokenMismatchException $e) {
         return redirect($this->redirectIfVerificationFails());
     }
     return redirect($this->redirectAfterVerification());
 }