mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Update tenancy initialization section 2.x
This commit is contained in:
parent
abbed1c095
commit
53fd042d88
4 changed files with 12 additions and 161 deletions
|
|
@ -9,16 +9,17 @@ section: content
|
|||
|
||||
If you don't want to use the provided DB/Redis storage drivers, you can write your own driver.
|
||||
|
||||
To create a driver, create a class that implements the `Stancl\Tenancy\Interfaces\StorageDriver` interface.
|
||||
To create a driver, create a class that implements the `Stancl\Tenancy\Contracts\StorageDriver` interface.
|
||||
|
||||
Here's an example:
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
namespace App\StorageDrivers\MongoDBStorageDriver;
|
||||
|
||||
use Stancl\Tenancy\Tenant;
|
||||
use Stancl\Tenancy\Interfaces\StorageDriver;
|
||||
use Stancl\Tenancy\Contracts\StorageDriver;
|
||||
|
||||
class MongoDBStorageDriver implements StorageDriver
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue