Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
9798f6aa7d |
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user