Laravel 12.42 just made index handling in migrations so much cleaner.
Meet:
✅ whenTableHasIndex()
✅ whenTableDoesntHaveIndex()
No more boilerplate. Beautiful DX. 🔥
Back