Aug 22, 2024
php artisan migrate
php artisan migrate --help
or php artisan migrate -h
.database/migrations
directory.timestamp_create_table_name.php
2023_01_01_000000_create_users_table.php
php artisan migrate
creates defined tables in the database.migrations
table that records the migrations that have been run.php artisan make:migration update_users_table
name
to username
:
Schema::table('users', function (Blueprint $table) { ... });
php artisan migrate:status
to check the current status of your migrations.