app/Http/Controllers/CarritoController.php
# Our function for removing a certain product from the cart
Our function for removing a certain product from the cart
Our function for removing a certain product from the cart
public function remove(Request $r)
    {
        $id =$r->input('id');
        $rows  = Cart::content();
        $rowId = $rows->where('id', $id)->first()->rowId;
        Cart::remove($rowId);
        return back();
    }
public function remove ( Request $ r ) { $ id = $ r -> input ( 'id' ) ; $ rows = Cart :: content ( ) ; $ rowId = $ rows -> where ( 'id' , $ id ) -> first ( ) -> rowId ; Cart :: remove ( $ rowId ) ; return back ( ) ; }
Our function for removing a certain product from the cart
Our function for removing a certain product from the cart