rename scopes comment

This commit is contained in:
2023-12-25 12:23:13 +03:00
parent 2551aadc7e
commit bd4566d078
4 changed files with 10 additions and 9 deletions

View File

@@ -134,12 +134,12 @@ class Plan extends Model implements Viewable
return false;
}
public function scopeByNegative(Builder $query)
public function scopeNegativeComments(Builder $query)
{
return static::comments()->where('grade', '<=', '3');
}
public function scopeByPositive(Builder $query)
public function scopePositiveComments(Builder $query)
{
return static::comments()->where('grade', '>', '3');
}