mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 22:34:03 +00:00
First try at Laravel 8 (#491)
This commit is contained in:
parent
375380cc7e
commit
36aabb7883
4 changed files with 12 additions and 9 deletions
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
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;
|
||||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
$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']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue