Laravel 8 Artisan Command to Migrate only one specific table

Migrations are cool ways to use the databse with laravel 8 or 9. Let's go ahead to migrate a specific or one table using the laravel artisan command

Here is a clear example of how a migrated table do looks like

Rolling back: 2021_08_20_214543_create_messages_table 
Rolled back: 2021_08_20_214543_create_messages_table (111.22ms)
Migration not found: 2019_08_19_000000_create_failed_jobs_table
Migration not found: 2014_10_12_100000_create_password_resets_table
Migration not found: 2014_10_12_000000_create_users_table
Migrating: 2021_08_20_214543_create_messages_table
Migrated: 2021_08_20_214543_create_messages_table (69.08ms)

How to migrate a specific table using laravel artisan command below

php artisan migrate --path=./database/migrations/2021_08_20_214543_create_messages_table.php


How to refresh a specific table using laravel artisan command

php artisan migrate:refresh --path=./database/migrations/2021_08_20_214543_create_messages_table.php