mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 18:04:03 +00:00
Merge branch '1.x' of github.com:stancl/tenancy into 1.x
This commit is contained in:
commit
760817529e
4 changed files with 22 additions and 635 deletions
|
|
@ -49,7 +49,7 @@ class Migrate extends MigrateCommand
|
|||
|
||||
tenant()->all($this->option('tenants'))->each(function ($tenant) {
|
||||
$this->line("Tenant: {$tenant['uuid']} ({$tenant['domain']})");
|
||||
|
||||
|
||||
// See Illuminate\Database\Migrations\DatabaseMigrationRepository::getConnection.
|
||||
// Database connections are cached by Illuminate\Database\ConnectionResolver.
|
||||
$connectionName = "tenant{$tenant['uuid']}";
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ use Illuminate\Database\DatabaseManager as BaseDatabaseManager;
|
|||
final class DatabaseManager
|
||||
{
|
||||
public $originalDefaultConnection;
|
||||
|
||||
|
||||
protected $defaultTenantConnectionName = 'tenant';
|
||||
|
||||
public function __construct(BaseDatabaseManager $database)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue