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:
parent
6c3f86a611
commit
9296b3806e
3 changed files with 33 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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' => '',
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue