Exemplo n.º 1
0
 public function __construct()
 {
     $models = Config::get('dashboard::models');
     if (Auth::pep__dashboard()->check()) {
         $user = Auth::pep__dashboard()->user();
         $models = array_intersect_key($models, array_flip($user->rights));
     }
     View::share('models', $models);
 }
Exemplo n.º 2
0
 public function logout()
 {
     Auth::pep__dashboard()->logout();
     return Redirect::route('dashboard::pages.login');
 }