1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 13:34:04 +00:00

begin work on docs

This commit is contained in:
Samuel Štancl 2019-08-10 15:13:33 +02:00
parent 6c3f86a611
commit 9296b3806e
3 changed files with 33 additions and 5 deletions

View file

@ -7,8 +7,8 @@ use Stancl\Tenancy\Interfaces\TenantModel;
class Tenant extends Model implements TenantModel
{
protected $dataColumn = 'data';
protected $specialColumns = [];
protected $dataColumn = 'data'; // todo load this from config
protected $specialColumns = []; // todo load this from config
protected $guarded = [];
protected $primaryKey = 'uuid';
public $incrementing = false;

View file

@ -1,14 +1,14 @@
<?php
return [
'storage_driver' => 'Stancl\Tenancy\StorageDrivers\RedisStorageDriver',
'storage_driver' => 'Stancl\Tenancy\StorageDrivers\DatabaseStorageDriver',
'tenant_model' => 'Stancl\Tenancy\Tenant',
'tenant_route_namespace' => 'App\Http\Controllers',
'exempt_domains' => [
// 'localhost',
],
'database' => [
'based_on' => 'mysql',
'based_on' => 'sqlite',
'prefix' => 'tenant',
'suffix' => '',
],