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.
1 parent f5caa83 commit 0e802baCopy full SHA for 0e802ba
src/Schema.php
@@ -313,7 +313,12 @@ public static function seed(string $fileToSeed): bool
313
314
if (strpos($fakerMethod, ':') !== false) {
315
$fakerMethod = explode(':', $fakerMethod);
316
- $localFakerInstance = $localFakerInstance->{$fakerMethod[0]}($fakerMethod[1]);
+ if (strpos($fakerMethod[1], ',') !== false) {
317
+ $array_params = explode(",",$fakerMethod[1]);
318
+ $localFakerInstance = $localFakerInstance->{$fakerMethod[0]}($array_params);
319
+ } else {
320
+ $localFakerInstance = $localFakerInstance->{$fakerMethod[0]}($fakerMethod[1]);
321
+ }
322
} else {
323
$localFakerInstance = $localFakerInstance->{$fakerMethod}();
324
}
0 commit comments