File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ The preferred way to install this extension is through [composer](http://getcomp
8
8
9
9
With Composer installed, you can then install the extension using the following commands:
10
10
11
+ ** NOTE:** Until laravel 7.x use version 1.x. From laravel 8.0 and later use 2.x
12
+
11
13
``` bash
12
14
$ php composer.phar require jlorente/laravel-data-migrations
13
15
```
Original file line number Diff line number Diff line change 7
7
"email" : " jose.lorente.martin@gmail.com"
8
8
}],
9
9
"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"
12
12
},
13
13
"autoload" : {
14
14
"psr-4" : {
Original file line number Diff line number Diff line change 9
9
10
10
namespace Jlorente \DataMigrations ;
11
11
12
+ use Illuminate \Contracts \Events \Dispatcher ;
12
13
use Illuminate \Support \ServiceProvider ;
13
14
use Illuminate \Database \Migrations \Migrator ;
14
15
use Jlorente \DataMigrations \Console \Commands \InstallCommand as MigrateInstallCommand ;
@@ -131,7 +132,7 @@ protected function bindMigrator()
131
132
protected function bindArtisanCommands ()
132
133
{
133
134
$ 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] );
135
136
});
136
137
$ this ->app ->singleton ('command.migrate-data.install ' , function ($ app ) {
137
138
return new MigrateInstallCommand ($ app ['migration.data.repository ' ]);
You can’t perform that action at this time.
0 commit comments