Added allCompanies scope..

This commit is contained in:
Cüneyt Şentürk
2020-12-08 18:47:32 +03:00
parent 4c9234cba6
commit b96f14eac0
2 changed files with 12 additions and 12 deletions

View File

@ -26,16 +26,4 @@ class Recurring extends Model
{
return $this->morphTo();
}
/**
* Scope to get all rows filtered, sorted and paginated.
*
* @param \Illuminate\Database\Eloquent\Builder $query
*
* @return \Illuminate\Database\Eloquent\Builder
*/
public function scopeAllCompanies($query)
{
return $query->where('company_id', '<>', '0');
}
}