Compare commits

..

1 Commits
9.0.3 ... 9.0.4

Author SHA1 Message Date
Deon George
9798f6aa7d Change scopeActive to include table 2021-06-29 16:38:19 +10:00

View File

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