You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eloquent model factories (the ones for seeding test data and such) that reside in database/factories/ModelFactory.php, have a strange behavior.
The FactoryBuilder::make() method makes multiple models even when FactoryBuilder::$amount
is set to 0.
As per the above, one would expect the make() method to create an empty array or some other indicator that no models were created. Instead an array with 2 models is returned.
The text was updated successfully, but these errors were encountered:
Description:
Eloquent model factories (the ones for seeding test data and such) that reside in
database/factories/ModelFactory.php
, have a strange behavior.The
FactoryBuilder::make()
method makes multiple models even whenFactoryBuilder::$amount
is set to
0
.Steps To Reproduce:
As per the above, one would expect the
make()
method to create an empty array or some other indicator that no models were created. Instead an array with 2 models is returned.The text was updated successfully, but these errors were encountered: