Run one migration in Laravel

To run only one migration file in Laravel, follow these steps ๐Ÿ‘‡

1. Navigate to your Laravel project folder using the terminal.

2. Locate the specific migration file you want to run. Migration files are usually located in the `database/migrations` directory.

3. Once you have identified the migration file you want to run, use the following command in the terminal:

For Linux

php artisan migrate --path=/database/migrations/filename.php

For Windows

php artisan migrate --path=\database/migrations/filename.php

Replace `filename.php` with the actual name of the migration file you wish to execute.

This command will run the migration specified in the given path and apply the changes to your database. It is useful when you want to run a specific migration without executing all the pending migrations.