Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Feb 25, 2024
1 parent b719f7e commit 843407e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Models/Name.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,23 +110,23 @@ public function scopeNonRares(Builder $query): void
/**
* Scope a query to only include male names.
*/
public function male(Builder $query): void
public function scopeMale(Builder $query): void
{
$query->where('gender', 'male');
}

/**
* Scope a query to only include female names.
*/
public function female(Builder $query): void
public function scopeFemale(Builder $query): void
{
$query->where('gender', 'female');
}

/**
* Scope a query to only include unisex names.
*/
public function unisex(Builder $query): void
public function scopeUnisex(Builder $query): void
{
$query->where('unisex', 1);
}
Expand Down

0 comments on commit 843407e

Please sign in to comment.