Code improvements
This commit is contained in:
@@ -9,6 +9,6 @@ class SiteScope implements Scope
|
||||
{
|
||||
public function apply(Builder $builder, Model $model): void
|
||||
{
|
||||
$builder->where($model->getTable() . '.tenant', app('tenant')->slug);
|
||||
$builder->where($model->getTable() . '.tenant', currentTenant()->slug);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user