From 20c354812d3175acad1265a0895e557f2db510d9 Mon Sep 17 00:00:00 2001 From: jradtilbrook Date: Mon, 4 May 2020 17:02:08 +0800 Subject: [PATCH 1/2] Update migration creator to work with laravel 7 --- src/ServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 1362c03..2e1b450 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -21,7 +21,7 @@ public function register() }); $this->app->extend('migration.creator', function () { - return $this->app->make(MigrationCreator::class); + return $this->app->make(MigrationCreator::class, __DIR__ . '/../stubs/'); }); } From a035d12a74a28bb5a351f42716369e8b10dad000 Mon Sep 17 00:00:00 2001 From: jradtilbrook Date: Mon, 4 May 2020 17:05:09 +0800 Subject: [PATCH 2/2] Fix container binding --- src/ServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 2e1b450..66322cf 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -21,7 +21,7 @@ public function register() }); $this->app->extend('migration.creator', function () { - return $this->app->make(MigrationCreator::class, __DIR__ . '/../stubs/'); + return $this->app->make(MigrationCreator::class, ['customStubPath' => __DIR__ . '/../stubs/']); }); }