So I was working with laravel seeds and came across this amazing article on how to speed them up.
I have tested this method and yes the seed time has dropped to half for my most my seeds.
The only problem that I face is also described is that the make() method on the factory does not generate timestamps and some of my tests start complaining now.
Instead of modifying all of my seeds to make them seed timestamps manually, is there a way I can force the make() method on the factories to do it for me?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire