mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-15 19:54:02 +00:00
Add and fix heading IDs
This commit is contained in:
parent
8029bdc51c
commit
e7edb9331b
11 changed files with 17 additions and 17 deletions
|
|
@ -10,7 +10,7 @@ section: content
|
|||
|
||||
TODO: Review
|
||||
|
||||
## Events
|
||||
## Events {#events}
|
||||
|
||||
Keep in mind that the package makes heavy use of events, so if you use `Event::fake()` anywhere in your tests, tenancy initialization and related processes might break.
|
||||
|
||||
|
|
@ -30,7 +30,7 @@ Event::fake();
|
|||
|
||||
To test your central app, just write normal Laravel tests.
|
||||
|
||||
## Tenant app {#central-app}
|
||||
## Tenant app {#tenant-app}
|
||||
|
||||
Note: If you're using multi-database tenancy & the automatic mode, it's not possible to use `:memory:` SQLite databases or the `RefreshDatabase` trait due to the switching of default database.
|
||||
|
||||
|
|
@ -55,7 +55,7 @@ class TestCase // extends ...
|
|||
public function initializeTenancy()
|
||||
{
|
||||
$tenant = Tenant::create();
|
||||
|
||||
|
||||
tenancy()->initialize($tenant);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue