コード例 #1
0
ファイル: LockFilter.php プロジェクト: codenamegary/l4-lock
 /**
  * This is the method used to check whether or not
  * the user should be allowed to continue or
  * prompted for login.
  * 
  * @return Illuminate\Http\RedirectResponse
  */
 public function auth()
 {
     if ($this->lock->check()) {
         return;
     }
     return $this->redirect();
 }
コード例 #2
0
 /**
  * Logs the user out and redirects to '/'.
  */
 public function getLogout()
 {
     $this->lock->logout();
     return $this->redirector->to('/');
 }