Skip to content

Commit

Permalink
First try at Laravel 8 (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresayej authored Sep 8, 2020
1 parent 375380c commit 36aabb7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
matrix:
laravel: [
"^6.0",
"^7.0"
"^7.0",
"^8.0"
]

steps:
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
],
"require": {
"ext-json": "*",
"illuminate/support": "^6.0|^7.0",
"illuminate/support": "^6.0|^7.0|^8.0",
"facade/ignition-contracts": "^1.0",
"ramsey/uuid": "^3.7|^4.0",
"stancl/jobpipeline": "^1.0",
"stancl/virtualcolumn": "^1.0"
},
"require-dev": {
"vlucas/phpdotenv": "^3.3|^4.0",
"laravel/framework": "^6.0|^7.0",
"orchestra/testbench-browser-kit": "^4.0|^5.0",
"vlucas/phpdotenv": "^3.3|^4.0|^5.0",
"laravel/framework": "^6.0|^7.0|^8.0",
"orchestra/testbench-browser-kit": "^4.0|^5.0|^6.0",
"league/flysystem-aws-s3-v3": "~1.0",
"doctrine/dbal": "^2.10",
"spatie/valuestore": "^1.2"
Expand Down
8 changes: 5 additions & 3 deletions src/Commands/Migrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Stancl\Tenancy\Commands;

use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Database\Console\Migrations\MigrateCommand;
use Illuminate\Database\Migrations\Migrator;
use Stancl\Tenancy\Concerns\DealsWithMigrations;
Expand All @@ -25,11 +26,12 @@ class Migrate extends MigrateCommand
/**
* Create a new command instance.
*
* @return void
* @param Migrator $migrator
* @param Dispatcher $dispatcher
*/
public function __construct(Migrator $migrator)
public function __construct(Migrator $migrator, Dispatcher $dispatcher)
{
parent::__construct($migrator);
parent::__construct($migrator, $dispatcher);

$this->setName('tenants:migrate');
$this->specifyParameters();
Expand Down
2 changes: 1 addition & 1 deletion src/TenancyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function register(): void
$this->app->bind(Contracts\UniqueIdentifierGenerator::class, $this->app['config']['tenancy.id_generator']);

$this->app->singleton(Commands\Migrate::class, function ($app) {
return new Commands\Migrate($app['migrator']);
return new Commands\Migrate($app['migrator'], $app['events']);
});
$this->app->singleton(Commands\Rollback::class, function ($app) {
return new Commands\Rollback($app['migrator']);
Expand Down

0 comments on commit 36aabb7

Please sign in to comment.