We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cdd0cbb + 0e802ba commit eb89128Copy full SHA for eb89128
src/Schema.php
@@ -317,7 +317,12 @@ public static function seed(string $fileToSeed): bool
317
318
if (strpos($fakerMethod, ':') !== false) {
319
$fakerMethod = explode(':', $fakerMethod);
320
- $localFakerInstance = $localFakerInstance->{$fakerMethod[0]}($fakerMethod[1]);
+ if (strpos($fakerMethod[1], ',') !== false) {
321
+ $array_params = explode(",",$fakerMethod[1]);
322
+ $localFakerInstance = $localFakerInstance->{$fakerMethod[0]}($array_params);
323
+ } else {
324
+ $localFakerInstance = $localFakerInstance->{$fakerMethod[0]}($fakerMethod[1]);
325
+ }
326
} else {
327
$localFakerInstance = $localFakerInstance->{$fakerMethod}();
328
}
0 commit comments