public function __construct(CategoryInterface $repo, Request $request) { $this->repo = $repo; $this->categoryLayerNumber = config('module.category.layer'); if ($request->query('category')) { session()->put('sharenjoy.categoryType', $request->query('category')); } $this->type = session('sharenjoy.categoryType'); parent::__construct(); view()->share('specifyName', pick_trans('menu.' . $this->type . '_category')); }
public function __construct() { parent::__construct(); }
public function __construct(CarouselInterface $repo) { $this->repo = $repo; parent::__construct(); }
public function __construct(ProductInterface $repo) { $this->repo = $repo; parent::__construct(); }