Konfiguration
/.env
Verzeichnis
/database/migrations/
Status anzeigen
php artisan migrate:status
Migration anlegen
php artisan make:migration create_name_table
Beispieltabelle
$table->increments('id');
$table->string('name')->unique();
$table->integer('price');
$table->boolean('available')->default(true);
$table->timestamps();
Tabelle anlegen
php artisan migrate
Lädt alle Dateien aus den Verzeichnis : /database/migrations und erstellt diese.
Links
Start
https://laravel.com/docs/9.x/database
Query Builder
https://laravel.com/docs/9.x/queries
Pagination
https://laravel.com/docs/9.x/pagination
Migrations
https://laravel.com/docs/9.x/migrations
Seeding
https://laravel.com/docs/9.x/seeding