/** * @GET("shops/{shops}/mass_upload", middleware="auth") * @param Shops $shops * @return \Illuminate\View\View */ public function massUpload(Shops $shops) { $categories = ShopCategories::getShopCategories($shops->id); //\Session::put('s_id', $shops->id); return view('shops::mass_upload', compact('shops', 'categories')); }
/** * ShopCategoryComposer constructor. */ public function __construct() { $this->links = ShopCategories::all(); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { ShopCategories::findOrFail($id)->delete(); return redirect()->back(); }