diff --git a/app/Http/Controllers/Front/RecipeController.php b/app/Http/Controllers/Front/RecipeController.php index 5197a69b..c72a8104 100644 --- a/app/Http/Controllers/Front/RecipeController.php +++ b/app/Http/Controllers/Front/RecipeController.php @@ -55,7 +55,7 @@ class RecipeController extends Controller $mockedPaginatedRecipes = new LengthAwarePaginator( items: $allRecipes, total: count($allRecipes), - perPage: count($allRecipes), + perPage: max(1, count($allRecipes)), currentPage: 1, );