/** * Returns categories that are filtered * * @param \October\Rain\Database\Builder $query * @return \October\Rain\Database\Builder */ public function scopeIsFiltered($query) { return $query->has('filters'); }
/** * Add a relationship count condition to the query. * * @param string $relation * @param string $operator * @param int $count * @param string $boolean * @param \Closure|null $callback * @return \Illuminate\Database\Eloquent\Builder|static * @static */ public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null) { //Method inherited from \Illuminate\Database\Eloquent\Builder return \October\Rain\Database\Builder::has($relation, $operator, $count, $boolean, $callback); }