app/Http/Controllers/CartController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\Cart  $cart
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function cartDestroy($id)
    {
        $cart = Cart::findOrFail($id);
        $cart->delete();
        return back()->with('success', 'Cart Updated Successfully');
    }
public function cartDestroy ( $ id ) { $ cart = Cart :: findOrFail ( $ id ) ; $ cart -> delete ( ) ; return back ( ) -> with ( 'success' , 'Cart Updated Successfully' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .