diff --git a/src/Schema.php b/src/Schema.php index 5e47289..b3259b4 100644 --- a/src/Schema.php +++ b/src/Schema.php @@ -313,7 +313,12 @@ public static function seed(string $fileToSeed): bool if (strpos($fakerMethod, ':') !== false) { $fakerMethod = explode(':', $fakerMethod); - $localFakerInstance = $localFakerInstance->{$fakerMethod[0]}($fakerMethod[1]); + if (strpos($fakerMethod[1], ',') !== false) { + $array_params = explode(",",$fakerMethod[1]); + $localFakerInstance = $localFakerInstance->{$fakerMethod[0]}($array_params); + } else { + $localFakerInstance = $localFakerInstance->{$fakerMethod[0]}($fakerMethod[1]); + } } else { $localFakerInstance = $localFakerInstance->{$fakerMethod}(); }