public function __construct() { parent::__construct(); $db = Config::get('database.default'); if ($db != null) { View::share('navLinks', Admin_Menu::menuGenerator()); View::share('sidebar', Navigator::sidebar()); View::share('breadcrumb', Navigator::breadcrumb()); } $class = get_called_class(); if (!Request::ajax()) { switch ($class) { case 'Home_Controller': $this->filter('before', 'nonauth'); break; case 'Setup_Controller': $this->filter('before', 'nonauth'); break; case 'Admin_Auth_Controller': $this->filter('before', 'auth')->except(array('authenticate', 'verifyupdate', 'logout')); break; default: $this->filter('before', 'auth'); break; } } }
public function __construct() { parent::__construct(); View::share('sidebar', Navigator::sidebar()); $class = get_called_class(); if (!Request::ajax()) { switch ($class) { case 'Home_Controller': $this->filter('before', 'nonauth')->except('dashboard'); break; case 'Console_Auth_Controller': $this->filter('before', 'auth')->except(array('authenticate', 'verifyupdate', 'logout')); break; default: $this->filter('before', 'auth'); break; } } }