Laravel Community Tools by
Tighten
Laravel Versions
PHP Releases
Nova Packages
Laravel Tricks
Forge Recipes
Toggle navigation
Log in
Log in
Adewale Adeleye
Joined:
8 years ago
Total tricks:
1
Last trick:
8 years ago
Submitted tricks
Eloquent
How to Seed Multiple Data
This is the trick i use whenever i want to seed states or countries. I simply put the states inside an array and create a loop through the array and save each record into the database instead of repeating the instance to save the records.
Adewagold
8 years ago
13180
database