app/Http/Controllers/LibroController.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()
    {
        $libros = Libro::all();
        return view('catalogo')->with('libros', $libros);
    }
public function index ( ) { $ libros = Libro :: all ( ) ; return view ( 'catalogo' ) -> with ( 'libros' , $ libros ) ; }
Display a listing of the resource.
Display a listing of the resource .
//