Update tenancy initialization section 2.x

This commit is contained in:
Samuel Štancl 2019-09-22 19:28:58 +02:00
parent abbed1c095
commit 53fd042d88
4 changed files with 12 additions and 161 deletions

View file

@ -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
{