/** * [scopeEditor description] * @param [type] $query [description] * @return [type] [description] */ public function scopeEditor($query) { return $query->where('level', '>=', \Access::levelEditor()); }