mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:44:02 +00:00
Apply fixes from StyleCI
This commit is contained in:
parent
be077ae73c
commit
fd66537e7f
2 changed files with 2 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ class Migrate extends MigrateCommand
|
||||||
|
|
||||||
tenant()->all($this->option('tenants'))->each(function ($tenant) {
|
tenant()->all($this->option('tenants'))->each(function ($tenant) {
|
||||||
$this->line("Tenant: {$tenant['uuid']} ({$tenant['domain']})");
|
$this->line("Tenant: {$tenant['uuid']} ({$tenant['domain']})");
|
||||||
|
|
||||||
// See Illuminate\Database\Migrations\DatabaseMigrationRepository::getConnection.
|
// See Illuminate\Database\Migrations\DatabaseMigrationRepository::getConnection.
|
||||||
// Database connections are cached by Illuminate\Database\ConnectionResolver.
|
// Database connections are cached by Illuminate\Database\ConnectionResolver.
|
||||||
$connectionName = "tenant{$tenant['uuid']}";
|
$connectionName = "tenant{$tenant['uuid']}";
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ use Illuminate\Database\DatabaseManager as BaseDatabaseManager;
|
||||||
final class DatabaseManager
|
final class DatabaseManager
|
||||||
{
|
{
|
||||||
public $originalDefaultConnection;
|
public $originalDefaultConnection;
|
||||||
|
|
||||||
protected $defaultTenantConnectionName = 'tenant';
|
protected $defaultTenantConnectionName = 'tenant';
|
||||||
|
|
||||||
public function __construct(BaseDatabaseManager $database)
|
public function __construct(BaseDatabaseManager $database)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue