Skip to content

Commit 486b080

Browse files
committed
fixed migration issue raised by taqie, thanks
1 parent 9016de8 commit 486b080

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/Commands/Foundation/Migrations/MigrationCreator.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@
44

55
use Illuminate\Database\Migrations\MigrationCreator as RealMigrationCreator;
66
use App\Commands\Helpers\PackageDetail;
7+
use Illuminate\Filesystem\Filesystem;
78

89
class MigrationCreator extends RealMigrationCreator
910
{
1011
use PackageDetail;
1112

13+
public function __construct(Filesystem $files, $customStubPath = __DIR__.'/stubs')
14+
{
15+
parent::__construct($files, $customStubPath);
16+
}
17+
1218
/**
1319
* Get the full path to the migration.
1420
*

app/Commands/Helpers/PackageDetail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function rootNamespace()
4343

4444
public function devPath()
4545
{
46-
return (app()->environment() === 'development') ? '/package/' . $this->getPackageName() . '/' : '/';
46+
return (app()->environment() === 'development') ? '/package/' . $this->getPackageName() . '' : '/';
4747
}
4848

4949
public function getPath($name)

0 commit comments

Comments
 (0)