public function __construct(Authorizer $authorizer)
 {
     parent::__construct($authorizer);
     $this->middleware('oauth', ['except' => 'store']);
     $this->middleware('disconnect:mongodb', ['only' => ['show', 'myComment']]);
     $this->middleware('oauth.checkClient', ['only' => 'store']);
 }
Exemple #2
0
 public function __construct(Authorizer $authorizer)
 {
     parent::__construct($authorizer);
     $this->middleware('oauth', ['except' => 'store']);
     $this->middleware('disconnect:mongodb', ['only' => ['modify', 'notice', 'removeNotice']]);
     $this->middleware('oauth.checkClient', ['only' => 'store']);
     $this->middleware('validation');
 }
Exemple #3
0
 public function __construct(Authorizer $authorizer)
 {
     parent::__construct($authorizer);
     $this->middleware('disconnect:sqlsrv', ['only' => ['report', 'index', 'show', 'search', 'moreArticle', 'myStar', 'team']]);
     $this->middleware('disconnect:sqlsrv2', ['only' => ['product']]);
     $this->middleware('disconnect:mongodb', ['only' => ['favour', 'show', 'commentList', 'myComment', 'myStar', 'myInformation']]);
     $this->middleware('oauth', ['except' => ['index', 'show', 'report', 'anonymousComment', 'anonymousReply', 'commentList', 'search', 'moreArticle', 'product', 'team']]);
     $this->middleware('validation');
 }
 public function __construct(Authorizer $authorizer)
 {
     parent::__construct($authorizer);
     $this->middleware('disconnect:sqlsrv', ['only' => ['comment', 'index', 'show', 'report', 'team']]);
     $this->middleware('disconnect:sqlserver', ['only' => ['product']]);
     $this->middleware('disconnect:mongodb', ['only' => ['comment', 'index', 'show', 'commentList', 'reply', 'favour', 'unfavour']]);
     $this->middleware('oauth', ['except' => ['index', 'show', 'report', 'commentList', 'product', 'report', 'team']]);
     $this->middleware('validation.required:content', ['only' => ['comment', 'reply']]);
 }
 public function __construct()
 {
     $this->middleware('auth');
     //获取导航
     $backNavs = Config::get('member-nav');
     $tree = new Tree($backNavs, 'parent_id', 'title');
     //$backNavs = $tree->getTreeView(1);
     View::share('tree', $tree);
     parent::__construct();
 }
 public function __construct(Authorizer $authorizer)
 {
     parent::__construct($authorizer);
     $this->middleware('oauth', ['except' => ['todo']]);
     $this->middleware('validation');
 }
Exemple #7
0
 /**
  * Create a new controller instance.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     //		$this->middleware('auth');
 }