Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ajmerainfo's avatar

After First deploy laravel add changes on database/migration

In laracasts has any videos related to maintain code changes like example how to manage database migration changes after first deploy. Do we need to login each time SSH and apply artisan command for that or it has any other ways?

0 likes
3 replies
StormShadow's avatar

Yes, you have to run the artisan command to apply your migrations. Just add your new migration file to git and then run php artisan migrate as part of your deploy script. Laravel will only apply the migrations that haven't been already run so it's ok to run the command at any time.

1 like

Please or to participate in this conversation.