mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 19:24:02 +00:00
Add purge()
This commit is contained in:
parent
3abde1a791
commit
60c5a0b500
2 changed files with 12 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ class DatabaseManager
|
|||
public function disconnect()
|
||||
{
|
||||
$default_connection = $this->originalDefaultConnection;
|
||||
$this->database->purge();
|
||||
$this->database->reconnect($default_connection);
|
||||
$this->database->setDefaultConnection($default_connection);
|
||||
}
|
||||
|
|
|
|||
11
tests/DataSeparationTest.php
Normal file
11
tests/DataSeparationTest.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace Stancl\Tenancy\Tests;
|
||||
|
||||
class DataSeparationTest extends TestCase
|
||||
{
|
||||
public $autoCreateTenant = false;
|
||||
public $autoInitTenancy = false;
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue