Ejemplo n.º 1
0
 /**
  * Create a new controller instance.
  *
  * @return void
  */
 public function __construct()
 {
     // Parent constructor
     parent::__construct();
     // Load Http/Middleware/Admin controller
     $this->middleware('auth.admin');
 }
Ejemplo n.º 2
0
 /**
  * Create a new controller instance.
  *
  * @return void
  */
 public function __construct()
 {
     // Parent constructor
     parent::__construct();
     // Load Http/Middleware/Admin controller
     $this->middleware('auth.admin');
     // Load settings and get repository data from database
     $this->settings = new Setting();
 }
Ejemplo n.º 3
0
 /**
  * Constructor.
  *
  * @return void
  */
 public function __construct()
 {
     // Parent constructor
     parent::__construct();
     // Load Http/Middleware/Admin controller
     $this->middleware('auth.admin');
     // Load roles and create model from Sentinel
     $this->roles = Sentinel::getRoleRepository()->createModel();
 }
Ejemplo n.º 4
0
 /**
  * Create a new controller instance.
  *
  * @return void
  */
 public function __construct()
 {
     // Parent constructor
     parent::__construct();
     // Load Http/Middleware/Admin controller
     $this->middleware('auth.admin', ['except' => 'profile']);
     // Load users and get repository data from Sentinel
     $this->users = new User();
     $this->roles = new Role();
 }