Skip to content

Commit

Permalink
Extra data error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yetakchi committed Jul 26, 2024
1 parent 67da377 commit 1829084
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Responses/RestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Ijodkor\ApiResponse\Responses;

use Illuminate\Contracts\Pagination\LengthAwarePaginator;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Resources\Json\ResourceCollection;
use Illuminate\Pagination\LengthAwarePaginator;
use Ijodkor\ApiResponse\Supporters\ListPaginator;

trait RestResponse {
Expand Down Expand Up @@ -118,9 +118,7 @@ protected function paginated($data, string $key, ?string $message = 'Muvaffaqiya

return response()->json([
'status' => true,
'data' => [
$key => $data
],
'data' => $data,
'message' => $message,
]);
}
Expand Down

0 comments on commit 1829084

Please sign in to comment.