mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 12:04:03 +00:00
Set public key on model
This commit is contained in:
parent
9fcfcf3ae0
commit
de025a6a4d
5 changed files with 10 additions and 8 deletions
|
|
@ -34,6 +34,10 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
__DIR__ . '/assets/config.php' => config_path('tenancy.php'),
|
||||
], 'config');
|
||||
|
||||
$this->publishes([
|
||||
__DIR__ . '/assets/2019_08_08_000000_create_tenants_table.php' => database_path('migrations'),
|
||||
], 'migrations');
|
||||
|
||||
$this->loadRoutesFrom(__DIR__ . '/routes.php');
|
||||
|
||||
Route::middlewareGroup('tenancy', [
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ class Tenant extends Model
|
|||
protected $dataColumn = 'data';
|
||||
protected $specialColumns = [];
|
||||
protected $guarded = [];
|
||||
protected $publicKey = 'uuid';
|
||||
public $incrementing = false;
|
||||
|
||||
/**
|
||||
* Decoded data from the data column.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue