Example #1
0
 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();
 }
Example #3
0
 public function __construct(CarouselInterface $repo)
 {
     $this->repo = $repo;
     parent::__construct();
 }
Example #4
0
 public function __construct(ProductInterface $repo)
 {
     $this->repo = $repo;
     parent::__construct();
 }