added tenantable attribute to models
This commit is contained in:
18
app/Traits/Tenants.php
Normal file
18
app/Traits/Tenants.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Traits;
|
||||
|
||||
trait Tenants
|
||||
{
|
||||
protected $tenantable = true;
|
||||
|
||||
public function isTenantable()
|
||||
{
|
||||
return (isset($this->tenantable) && ($this->tenantable === true));
|
||||
}
|
||||
|
||||
public function isNotTenantable()
|
||||
{
|
||||
return !$this->isTenantable();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user