コード例 #1
0
ファイル: ShopController.php プロジェクト: lyovkin/v2board
 /**
  * @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'));
 }
コード例 #2
0
 /**
  * ShopCategoryComposer constructor.
  */
 public function __construct()
 {
     $this->links = ShopCategories::all();
 }
コード例 #3
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     ShopCategories::findOrFail($id)->delete();
     return redirect()->back();
 }