migrate table laravel code example

Example 1: how to migrate single table in laravel

php artisan migrate --path=/database/migrations/2020_04_10_130703_create_test_table.php

Example 2: add column in laravel migration

php artisan make:migration add_paid_to_users_table --table=users

Example 3: laravel migrate database

php artisan migrate

Example 4: create migration table in php

php artisan make:migration create_users_table

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: