diff --git a/app/Http/Controllers/PublicController.php b/app/Http/Controllers/PublicController.php index 938fabb..880ada1 100644 --- a/app/Http/Controllers/PublicController.php +++ b/app/Http/Controllers/PublicController.php @@ -56,7 +56,7 @@ class PublicController extends BaseController return response()->json(["pagination" => [ "total" => $g->count(), "items_per_page" => $limit, - "pages" => ($g->count() / $limit), + "pages" => (int)($g->count() / $limit), "preview" => $preview, "next" => $next], "data" => [