filmov
tv
Rollback Specific Migration Laravel
![preview_player](https://i.ytimg.com/vi/zxGKf4eJSAg/sddefault.jpg)
Показать описание
To rollback a specific migration in Laravel, you can make use of the rollback command with the --step option. The --step option allows you to specify the number of migrations you want to rollback. Here's how you can rollback a specific migration in Laravel:
Open your terminal or command prompt and navigate to your Laravel project directory. And Run the following command to rollback a specific migration:
php artisan migrate:rollback --step=1
Replace 1 with the number of migrations you want to rollback. In this example, we're rolling back only one migration.
Note: The migrate:rollback command will rollback the latest batch of migrations by default. If you want to rollback all the migrations, you can run the command without the --step option:
php artisan migrate:rollback
#for-more-details
#laravel #laravel_tutorial #laraveltutoria #laravelcourse #laravelphp #laravel_development #laravel10 #source_code #laraveller
Open your terminal or command prompt and navigate to your Laravel project directory. And Run the following command to rollback a specific migration:
php artisan migrate:rollback --step=1
Replace 1 with the number of migrations you want to rollback. In this example, we're rolling back only one migration.
Note: The migrate:rollback command will rollback the latest batch of migrations by default. If you want to rollback all the migrations, you can run the command without the --step option:
php artisan migrate:rollback
#for-more-details
#laravel #laravel_tutorial #laraveltutoria #laravelcourse #laravelphp #laravel_development #laravel10 #source_code #laraveller