Exemplo n.º 1
0
 /**
  * Contructor for both Authentication and Model Injecting
  * @param type Page $page
  * @return type
  */
 public function __construct(Page $page)
 {
     $this->middleware('auth');
     $this->middleware('roles');
     $this->page = $page;
     SettingsController::language();
 }
 /**
  * Create a new controller instance.
  * constructor to check
  * 1. authentication
  * 2. user roles
  * 3. roles must be agent
  * @return void
  */
 public function __construct()
 {
     // checking authentication
     $this->middleware('auth');
     // checking roles
     $this->middleware('roles');
     SettingsController::language();
 }