Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
APP_NAME=nombreProyectoLaravel
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=nobreBaseDatosQueCrearon
DB_USERNAME=root
DB_PASSWORD=
$table->bigIncrements('id');
$table->string('title'); <------
$table->string('pages'); <------
$table->timestamps();
books.blade.php <---------
****************
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<h1>list book</h1>
@foreach($books as $book)
<li>
<a>
{{$book->id}} - {{$book->title}} - {{$book->pages}}
</a>
</li>
@endforeach
</body>
</html>
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Book;
Route::get('/book', 'BookController@list');
ahora para la prueba insertamos datos en la tabla que creamos para ello
entren a su navegador y abren la tabla books y insertar
iiniciar el servidor
******************