laravel run migration code example
Example 1: php artisan run migration
php artisan migrate
Example 2: create laravel migration
php artisan make:migration create_users_table
Example 3: laravel migration rollback
To rollback one step:
php artisan migrate:rollback
To rollback multiple steps:
php artisan migrate:rollback
To drop all tables and reload all migrations:
php artisan migrate:fresh
Example 4: laravel create migration
php artisan make:migration create_flights_table
php artisan make:migration create_flights_table
php artisan make:migration add_destination_to_flights_table
Example 5: laravel create migration
php artisan make:migration add_votes_to_users_table
php artisan make:migration create_users_table
Example 6: 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