Wait, why is my feature breaking? Oh no… I forgot to run php artisan migrate after pulling! If you're part of a Laravel development team, this scenario might sound familiar. It happened to me more than once, and maybe it’s happening to you too. In this post, I’ll walk you through a simple, local-only solution to automatically run Laravel migrations right after you run git pull. No CI/CD, no shell scripts — just a smart git alias.

May 24, 2025 - 03:50
 0

Wait, why is my feature breaking? Oh no… I forgot to run php artisan migrate after pulling!

If you're part of a Laravel development team, this scenario might sound familiar. It happened to me more than once, and maybe it’s happening to you too. In this post, I’ll walk you through a simple, local-only solution to automatically run Laravel migrations right after you run git pull. No CI/CD, no shell scripts — just a smart git alias.