Skip to content

Commit

Permalink
Update to Larvel 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Heffley committed Mar 20, 2020
1 parent 63340d5 commit 867c348
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
],
"license": "MIT",
"require": {
"php": "^7.2",
"laravel/framework": "^6.0"
"php": "^7.2.5",
"laravel/framework": "^7.0"
},
"require-dev": {
"orchestra/testbench": "^4.0"
"orchestra/testbench": "^5.0"
},
"autoload": {
"psr-4": {
Expand Down
7 changes: 7 additions & 0 deletions src/OperationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace DealerInspire\Operations;

use DealerInspire\Operations\Console\MigrationCreator;
use Illuminate\Support\ServiceProvider;
use DealerInspire\Operations\Console\QueueCommand;
use DealerInspire\Operations\Console\MakeOperationCommand;
Expand All @@ -27,5 +28,11 @@ public function boot(): void
public function register(): void
{
$this->app->alias(Operator::class, 'operator');

$this->app->when(MigrationCreator::class)
->needs('$customStubPath')
->give(function ($app) {
return $app->basePath('stubs');
});
}
}

0 comments on commit 867c348

Please sign in to comment.