Enabled Domain homepage

This commit is contained in:
Deon George
2021-06-14 21:33:18 +10:00
parent a3b4214040
commit 4011b2a82d
13 changed files with 205 additions and 70 deletions

View File

@@ -10,8 +10,8 @@ trait ScopeActive
/**
* Only query active records
*/
public function scopeActive()
public function scopeActive($query)
{
return $this->where($this->getTable().'.active',TRUE);
return $query->where($this->getTable().'.active',TRUE);
}
}