コード例 #1
0
ファイル: MyController.php プロジェクト: Fash1/Fash1
 public function getDeleteBag($id)
 {
     $bag = Bag::where('user_id', '=', Auth::user()->id)->where('id', '=', $id)->first();
     $bag->delete();
     Session::flash('alert', 'A product has been removed from your bag.');
     return Redirect::to(route('my.bag'));
 }