brandRepository = $brandRepository; $this->_config = request('_config'); } public function index() { return view($this->_config['view']); } public function create(){ return view($this->_config['view']); } public function edit($id){ $brand = $this->brandRepository->find($id); return view($this->_config['view'], compact('brand')); } public function update(){ } public function destroy($id){ } public function massDestroy(){ } public function productCount(){ } }