Inheritance: extends App\Http\Controllers\Controller
 /**
  * Constructor
  *
  * @param App\Services\Role $role            
  */
 public function __construct(Role $role, Permission $permission)
 {
     parent::__construct();
     $this->middleware('auth.admin:manage-roles');
     $this->role = $role;
     $this->permission = $permission;
 }
 protected function beforeSave(&$Item, $id, &$item, &$request, $func)
 {
     if (json_decode($request->content) == false) {
         throw new Exception('decode');
     }
     parent::beforeSave($Item, $id, $item, $request, $func);
 }
 /**
  * Constructor
  *
  * @param App\Services\User $user            
  */
 public function __construct(User $user, Role $role)
 {
     parent::__construct();
     $this->middleware('auth.admin:manage-users');
     $this->user = $user;
     $this->role = $role;
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     //Active page
     $this->_active = 'profile';
     //page url
     $this->_page_url = '/adminntw/profile';
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     //Active page
     $this->_active = 'setting';
     //page url
     $this->_page_url = '/adminntw/setting';
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     //Active page
     $this->_active = 'channels';
     //page url
     $this->_page_url = '/adminntw/channels';
 }
 public function __construct(Request $request)
 {
     parent::__construct();
     // С какой фирмой работаем
     $this->companyName = $request->get('company');
     if (!in_array($this->companyName, ['sika', 'sfs', 'primer'])) {
         abort(404);
     }
 }
 public function __construct(Request $request)
 {
     parent::__construct();
     // С какой фирмой работаем
     $this->companyName = $request->get('company');
     if (!in_array($this->companyName, ['primer'])) {
         // на момент разработки прайс-лист есть только для Праймера
         abort(404);
     }
 }
 protected function beforeSave(&$Item, $id, &$item, &$request, $func)
 {
     try {
         Category::checkJson($request->content);
     } catch (Exception $ex) {
         $appendMsg = ['json' => $ex->getMessage()];
         $this->exceptionAdd($appendMsg);
         throw new Exception('json');
     }
     parent::beforeSave($Item, $id, $item, $request, $func);
 }
 /**
  * Create a new controller instance.
  *
  * @return void
  */
 public function __construct(UserRepository $userRepository, RoleRepository $roleRepository)
 {
     parent::__construct();
     $this->userRepository = $userRepository;
     $this->roleRepository = $roleRepository;
 }
 public function __construct(CityRepository $city)
 {
     parent::__construct();
     $this->city = $city;
 }
 /**
  * @inheritdoc
  */
 public function __construct()
 {
     parent::__construct();
     $this->middleware('force_https', ['only' => ['getAdd', 'postAdd']]);
 }
 public function __construct(OperatorRepository $operator)
 {
     parent::__construct();
     $this->operator = $operator;
 }
 /**
  * Create a new controller instance.
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->middleware('adminAuth');
 }
 public function __construct(Request $request)
 {
     parent::__construct($request);
     $this->initSetting($this->PageSize, 'Article', 'Admin', 'PageSize', $request);
 }
Example #16
0
 public function __construct()
 {
     parent::__construct();
     $this->app_id = config('wechat.app_id');
     $this->secret = config('wechat.secret');
 }
 /**
  * Create a new CategoriesController instance.
  *
  * @param CategoryRepositoryInterface $category
  *
  */
 public function __construct(CategoryRepositoryInterface $category)
 {
     parent::__construct();
     $this->category = $category;
 }
 /**
  * Constructor
  *
  * @param App\Services\Permission $permission            
  */
 public function __construct(Permission $permission)
 {
     parent::__construct();
     $this->middleware('auth.admin:manage-permissions');
     $this->permission = $permission;
 }
 public function __construct()
 {
     parent::__construct();
 }
 protected function beforeDestroy(&$Item, $id, &$item, &$request)
 {
     parent::beforeDestroy($Item, $id, $item, $request);
     $this->decodeFileContent($item);
     $path = $item->filepath;
     if (file_exists($this->desRoot . $path) && !@unlink($this->desRoot . $path)) {
         throw new Exception('delete');
     }
 }
 public function __construct()
 {
     parent::__construct();
     view()->share('body_class', 'categories');
 }
 public function __construct()
 {
     return parent::__construct();
 }
 public function __construct(CardRepository $card)
 {
     parent::__construct();
     $this->card = $card;
 }
 public function __construct()
 {
     parent::__construct();
     view()->share('body_class', 'settings');
 }
 public function __construct(CurrencyContract $contract)
 {
     parent::__construct();
     $this->contract = $contract;
 }
 public function __construct(OrderRepository $order)
 {
     parent::__construct();
     $this->order = $order;
 }
 /**
  * Create a new controller instance.
  *
  * @return void
  */
 public function __construct(PermissionRepository $permissionRepository)
 {
     $this->permissionRepository = $permissionRepository;
     parent::__construct();
 }
 public function __construct(ProductRepository $product)
 {
     parent::__construct();
     $this->product = $product;
 }
Example #29
0
 public function __construct()
 {
     parent::__construct();
     view()->share('shop_remove', true);
 }
 public function __construct(MerchantRepository $merchant)
 {
     parent::__construct();
     $this->merchant = $merchant;
 }