Skip to content

Commit b5ee617

Browse files
authored
Merge pull request #30 from virutmath/master
Compatiable with Laravel 7 MigrationCreator construct
2 parents 8b79df2 + 26ad49a commit b5ee617

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Scaffold/MigrationCreator.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Encore\Admin\Helpers\Scaffold;
44

55
use Illuminate\Database\Migrations\MigrationCreator as BaseMigrationCreator;
6+
use Illuminate\Filesystem\Filesystem;
67
use Illuminate\Support\Arr;
78

89
class MigrationCreator extends BaseMigrationCreator
@@ -12,6 +13,11 @@ class MigrationCreator extends BaseMigrationCreator
1213
*/
1314
protected $bluePrint = '';
1415

16+
public function __construct(Filesystem $files, $customStubPath = null)
17+
{
18+
parent::__construct($files, $customStubPath);
19+
}
20+
1521
/**
1622
* Create a new model.
1723
*

0 commit comments

Comments
 (0)