Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Feb 18, 2024
1 parent de13abd commit d09df06
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/FemaleNameController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function letter(Request $request): View

$namesPagination = Cache::remember('female-letter-' . $requestedLetter . '-page-' . $requestedPage, 604800, fn () => Name::where('name', '!=', '_PRENOMS_RARES')
->where('gender', 'female')
->where('name', 'like', $requestedLetter . '%')
->where('name', 'like', Str::upper($requestedLetter) . '%')
->orderBy('total', 'desc')
->paginate(40)
);
Expand All @@ -67,7 +67,7 @@ public function letter(Request $request): View
'letters' => $letters,
'names' => $names,
'namesPagination' => $namesPagination,
'activeLetter' => Str::ucfirst($requestedLetter),
'activeLetter' => Str::upper($requestedLetter),
'favorites' => $favoritedNamesForLoggedUser,
]);
}
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/MaleNameController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function letter(Request $request): View

$namesPagination = Cache::remember('male-letter-' . $requestedLetter . '-page-' . $requestedPage, 604800, fn () => Name::where('name', '!=', '_PRENOMS_RARES')
->where('gender', 'male')
->where('name', 'like', $requestedLetter . '%')
->where('name', 'like', Str::upper($requestedLetter) . '%')
->orderBy('total', 'desc')
->paginate(40)
);
Expand All @@ -67,7 +67,7 @@ public function letter(Request $request): View
'letters' => $letters,
'names' => $names,
'namesPagination' => $namesPagination,
'activeLetter' => Str::ucfirst($requestedLetter),
'activeLetter' => Str::upper($requestedLetter),
'favorites' => $favoritedNamesForLoggedUser,
]);
}
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/MixteNameController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function letter(Request $request): View

$namesPagination = Cache::remember('mixte-letter-' . $requestedLetter . '-page-' . $requestedPage, 604800, fn () => Name::where('name', '!=', '_PRENOMS_RARES')
->where('unisex', 1)
->where('name', 'like', $requestedLetter . '%')
->where('name', 'like', Str::upper($requestedLetter) . '%')
->orderBy('total', 'desc')
->paginate(40)
);
Expand All @@ -67,7 +67,7 @@ public function letter(Request $request): View
'letters' => $letters,
'names' => $names,
'namesPagination' => $namesPagination,
'activeLetter' => Str::ucfirst($requestedLetter),
'activeLetter' => Str::upper($requestedLetter),
'favorites' => $favoritedNamesForLoggedUser,
]);
}
Expand Down

0 comments on commit d09df06

Please sign in to comment.