Skip to content

Commit de88db3

Browse files
authored
Merge pull request #5 from homedoctor-es/master
Laravel 8 updates:
2 parents 04b3399 + db4940e commit de88db3

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ The preferred way to install this extension is through [composer](http://getcomp
88

99
With Composer installed, you can then install the extension using the following commands:
1010

11+
**NOTE:** Until laravel 7.x use version 1.x. From laravel 8.0 and later use 2.x
12+
1113
```bash
1214
$ php composer.phar require jlorente/laravel-data-migrations
1315
```

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"email": "jose.lorente.martin@gmail.com"
88
}],
99
"require": {
10-
"php": ">=7.0.0",
11-
"illuminate/support": "^5.5 || ^6.0 || ^7.0"
10+
"php": ">=7.4.0",
11+
"illuminate/support": "^8.0"
1212
},
1313
"autoload": {
1414
"psr-4": {

src/DataMigrationsServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
namespace Jlorente\DataMigrations;
1111

12+
use Illuminate\Contracts\Events\Dispatcher;
1213
use Illuminate\Support\ServiceProvider;
1314
use Illuminate\Database\Migrations\Migrator;
1415
use Jlorente\DataMigrations\Console\Commands\InstallCommand as MigrateInstallCommand;
@@ -131,7 +132,7 @@ protected function bindMigrator()
131132
protected function bindArtisanCommands()
132133
{
133134
$this->app->singleton('command.migrate-data', function ($app) {
134-
return new MigrateDataCommand($app['migrator.data']);
135+
return new MigrateDataCommand($app['migrator.data'], $app[Dispatcher::class]);
135136
});
136137
$this->app->singleton('command.migrate-data.install', function ($app) {
137138
return new MigrateInstallCommand($app['migration.data.repository']);

0 commit comments

Comments
 (0)