Muhammed’s been working with Eloquent for over half a decade now, and it’s time to share his next bag of tricks. You are guaranteed to learn something new!
PHP
Run seeders from migrations
A practical look at why you should populate essential data from migrations instead of seeders. Once your app is live, manually running seeders becomes a deployment risk. Migrations are deterministic, automatic, and roll back cleanly. Read more…