app/Http/Controllers/CartController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $cart = Cart::all();
        return view ('products.show')->with('cart',$cart); 
    }
public function index ( ) { $ cart = Cart :: all ( ) ; return view ( 'products.show' ) -> with ( 'cart' , $ cart ) ; }
Display a listing of the resource.
Display a listing of the resource .