From ad8a17d6539ff53638aa9e2c3f232241e282a4b4 Mon Sep 17 00:00:00 2001 From: j_polak Date: Wed, 16 Sep 2020 16:36:51 +0200 Subject: [PATCH] modified creation of SeederMigrationCreator instance have the correct number of arguments, matching the creation of MigrationCreator in MigrationServiceProvider --- src/LaravelSeeder/SeederServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LaravelSeeder/SeederServiceProvider.php b/src/LaravelSeeder/SeederServiceProvider.php index b67823b..fde8908 100644 --- a/src/LaravelSeeder/SeederServiceProvider.php +++ b/src/LaravelSeeder/SeederServiceProvider.php @@ -90,7 +90,7 @@ private function registerMigrator(): void }); $this->app->singleton(SeederMigrationCreator::class, function ($app) { - return new SeederMigrationCreator($app['files']); + return new SeederMigrationCreator($app['files'], $app->basePath('stubs')); }); }