improved default scopes

This commit is contained in:
Denis Duliçi
2022-06-10 19:26:32 +03:00
parent 5890a99bf9
commit 92065bd49d
13 changed files with 68 additions and 79 deletions

View File

@@ -37,7 +37,7 @@ class Company implements Scope
}
// Skip if already exists
if ($this->scopeColumnExists($builder, 'company_id')) {
if ($this->scopeColumnExists($builder, '', 'company_id')) {
return;
}