Skip to content

Laravel specific table migration in single artisan command

Written by

sysadmin

How to migrate a specific table?

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

you should add the path to your migration file to refresh just this table and run

Previous article

Register a user in Laravel manually

Next article

Laravel create model, controller and migration in single artisan command