コード例 #1
0
ファイル: Guest.php プロジェクト: sectorr/sectorr
 /**
  * @param $route
  * @param array $properties
  * @return bool|void
  */
 public static function allow($route, array $properties)
 {
     if (!Auth::check()) {
         return true;
     }
     return Redirect::route('home');
 }
コード例 #2
0
ファイル: Auth.php プロジェクト: sectorr/sectorr
 /**
  * @param $route
  * @param array $properties
  * @return bool|void
  */
 public static function allow($route, array $properties)
 {
     if (\Sectorr\Core\Auth\Auth::check()) {
         return true;
     }
     return Redirect::route('login');
 }
コード例 #3
0
ファイル: helpers.php プロジェクト: sectorr/core
 /**
  * Helper: Redirect to the given url.
  *
  * @param $url
  */
 function url($url)
 {
     return Redirect::url($url);
 }