/** * 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; }
/** * 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; }
public function __construct() { parent::__construct(); //Active page $this->_active = 'profile'; //page url $this->_page_url = '/adminntw/profile'; }
public function __construct(Request $request) { parent::__construct($request); unset($this->ValidatorRule['creator']); unset($this->ValidatorRule['owner']); unset($this->ValidatorRule['introduction']); $this->exceptionAdd($this->appendMsg); }
public function __construct() { parent::__construct(); //Active page $this->_active = 'setting'; //page url $this->_page_url = '/adminntw/setting'; }
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); } }
public function __construct(Request $request) { parent::__construct($request); unset($this->ValidatorRule['name']); unset($this->ValidatorRule['content']); unset($this->ValidatorRule['introduction']); $this->exceptionAdd($this->appendMsg); $this->initSetting($this->PageSize, 'File', 'Admin', 'PageSize', $request); $this->desRoot = config('config.FILES_ROOT') . '/'; $this->initSetting($this->maxFileSize, 'File', 'Admin', 'MaxFileSize', $request); }
public function __construct(Request $request) { parent::__construct($request); unset($this->ValidatorRule['introduction']); unset($this->ValidatorRule['creator']); unset($this->ValidatorRule['owner']); unset($this->ValidatorRule['content']); $this->ValidatorRule['email'] = 'required|email'; $this->ValidatorRule['password'] = '******' . $this->password_min; $this->exceptionAdd($this->appendMsg); }
/** * 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; }
public function __construct(Request $request) { parent::__construct($request); unset($this->ValidatorRule['introduction']); }
/** * Create a new controller instance. * @return void */ public function __construct() { parent::__construct(); $this->middleware('adminAuth'); }
/** * Create a new CategoriesController instance. * * @param CategoryRepositoryInterface $category * */ public function __construct(CategoryRepositoryInterface $category) { parent::__construct(); $this->category = $category; }
public function __construct() { parent::__construct(); $this->app_id = config('wechat.app_id'); $this->secret = config('wechat.secret'); }
public function __construct() { parent::__construct(); }
/** * 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(); 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; }
public function __construct() { parent::__construct(); view()->share('shop_remove', true); }
public function __construct(MerchantRepository $merchant) { parent::__construct(); $this->merchant = $merchant; }