/**
  * Create a new controller instance.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     //$this->middleware('admin');
     //$this->middleware('author', ['only' => ['add', 'index']]);
     //$this->middleware('player', ['only' => ['add', 'index']]);
     //$this->middleware('guest', ['only' => ['get']]);
 }
示例#2
0
 /**
  * Create a new controller instance.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     //$this->middleware('admin');
 }