
Author: David Peach
Pet Owner of three; Father of two; Husband to one;
I enjoy sharing my gaming photography. I blog on my website. I am a disliker of generative AI (I'm essentially mandated to use it at work)
My fediverse profile is part of my personal website, using WordPress.
Preview Laravel’s migrations with the pretend flag
Here is the command to preview your Laravel migrations without running them:
cd /your/project/root
php artisan migrate --pretend
Laravel’s migrations give us the power to easily version control our database schema creations and updates.
In a recent task at work, I needed to find out why a particular migration was failing.
This is when I discovered the simple but super-useful flag --pretend, which will show you the queries that Laravel will run against your database without actually running those migrations.


