/**
  * ObjectBaseController construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->middleware('admin.switchPaginationCount', ['only' => 'getIndex']);
     $this->middleware('admin.setGoBackPrevious', ['only' => ['getIndex', 'getSort']]);
     $this->paginationCount = config('cmsharenjoy.paginationCount');
 }
 public function __construct()
 {
     parent::__construct();
     $allowed_extensions = array();
     $config = config('filer.allowed_file_ext');
     foreach ($config as $type) {
         $allowed_extensions = array_merge($allowed_extensions, $type);
     }
 }
 public function __construct(SettingInterface $repo)
 {
     $this->repo = $repo;
     parent::__construct();
 }
Exemple #4
0
 public function __construct()
 {
     parent::__construct();
     $this->middleware('admin.auth', ['only' => ['getIndex', 'getLogout']]);
     $this->middleware('admin.guest', ['except' => ['getIndex', 'getLogout']]);
 }