app/Http/Controllers/ProductoController.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()
    {
        $productos = Producto::all();
        return Inertia::render('Mostrar', ['productos' => $productos]);
    }
public function index ( ) { $ productos = Producto :: all ( ) ; return Inertia :: render ( 'Mostrar' , [ 'productos' => $ productos ] ) ; }
Display a listing of the resource.
Display a listing of the resource .