app/Http/Controllers/CartsController.php
/**
        * Remove the specified resource from storage.
        *
        * @param \App\Cart $cart
        * @return \Illuminate\Http\Response
    */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy($id)
    {
        $cart = Cart::where('id', '=', $id)->delete();
        return redirect('/cart')->with('status', 'Product berhasil dihapus!');
    }
public function destroy ( $ id ) { $ cart = Cart :: where ( 'id' , '=' , $ id ) -> delete ( ) ; return redirect ( '/cart' ) -> with ( 'status' , 'Product berhasil dihapus!' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .