php artisan migrate update table code example

Example 1: add column in laravel migration

php artisan make:migration add_paid_to_users_table --table=users

Example 2: how to make-migrations in laravel

php artisan make:migration create_users_table --create=users

php artisan make:migration add_votes_to_users_table --table=users

Example 3: laravel create migration

php artisan make:migration add_votes_to_users_table --table=users

php artisan make:migration create_users_table --create=users

Example 4: migrations required field laravel

$table->string('foo')->nullable(false)->change();

Example 5: php artisan see last migration

php artisan migrate:status

Tags:

Php Example