improved tenant identification

This commit is contained in:
Denis Duliçi
2021-04-16 00:59:43 +03:00
parent 9635e6be5d
commit 2b07442260
126 changed files with 1719 additions and 999 deletions

View File

@ -42,6 +42,6 @@ class Company implements Scope
}
// Apply company scope
$builder->where($table . '.company_id', '=', session('company_id'));
$builder->where($table . '.company_id', '=', company_id());
}
}