create new migration laravel code example
Example 1: php artisan make migration
php artisan make:migration create_users_table
Example 2: create laravel migration
php artisan make:migration create_users_table
Example 3: create new migration with terminal in laravel
php artisan make:migration add_votes_to_users_table --table=users
php artisan make:migration create_users_table --create=users
Example 4: laravel migration
php artisan make:migration create_users_table --create=users
php artisan make:migration add_votes_to_users_table --table=users
Example 5: artisan refresh
Try this command it works for me
php artisan migrate:fresh
However, be careful! This command will drop all data from your DB:
Example 6: create database from migration laravel for all
php artisan migrate:refresh
php artisan migrate:refresh --seed