app/Http/Controllers/PedidoController.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()
    {
        $pedido=Pedido::all();
        return view ('Pedido.mostrarCarrito',$pedido);
    }
public function index ( ) { $ pedido = Pedido :: all ( ) ; return view ( 'Pedido.mostrarCarrito' , $ pedido ) ; }
Display a listing of the resource.
Display a listing of the resource .