mirror of
https://github.com/archtechx/tenancy.git
synced 2026-06-21 15:04:03 +00:00
vague first draft of v3. TenantModelTest is passing
This commit is contained in:
parent
c2c90ff755
commit
bd9aad229b
56 changed files with 803 additions and 1366 deletions
11
src/Database/Models/Concerns/CentralConnection.php
Normal file
11
src/Database/Models/Concerns/CentralConnection.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace Stancl\Tenancy\Database\Models\Concerns;
|
||||
|
||||
trait CentralConnection
|
||||
{
|
||||
public function getConnectionName()
|
||||
{
|
||||
return config('tenancy.central_connection');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue