/** * @param $route * @param array $properties * @return bool|void */ public static function allow($route, array $properties) { if (!Auth::check()) { return true; } return Redirect::route('home'); }
/** * @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'); }
/** * Helper: Redirects to the given route. * * @param $route */ function redirect($route, $properties = []) { return Redirect::route($route, $properties); }