migration in laravel command code example

Example 1: php artisan make migration

php artisan make:migration create_users_table

Example 2: laravel migrate database

php artisan migrate

Example 3: create laravel migration

php artisan make:migration create_users_table

Example 4: fresh migrqte laravel

$ php artisan migrate:fresh

Dropped all tables successfully.
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table
Migrated:  2014_10_12_000000_create_users_table
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated:  2014_10_12_100000_create_password_resets_table

Example 5: laravel migration

$table->string('name', 100);