We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00a6308 commit 30ef240Copy full SHA for 30ef240
src/Migrations/Migrator.php
@@ -29,7 +29,13 @@ class Migrator extends LaravelMigrator
29
{
30
public function __construct(MigrationRepositoryInterface $repository, Resolver $resolver)
31
32
- parent::__construct($repository, $resolver, new Filesystem());
+ if (class_exists(Filesystem::class)) {
33
+ parent::__construct($repository, $resolver, new Filesystem());
34
+ } else {
35
+ // compat with Laravel 8
36
+ $this->repository = $repository;
37
+ $this->resolver = $resolver;
38
+ }
39
}
40
41
public function getMigrationFiles($paths): array
0 commit comments