Basic tenant structure
This commit is contained in:
1 parent
825af15962
commit
3570f442f5
35 files changed
+634
-144
No files matched your search
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Scopes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
abstract class InstancedModel extends Model
|
||||
{
|
||||
protected static function booted()
|
||||
{
|
||||
static::addGlobalScope(new SiteScope());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user