Skip to content

Commit a55a197

Browse files
committed
fix: revert index method signature
1 parent c80175c commit a55a197

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Repositories/Repository.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ public function resolveIndexRelationships($request)
532532
return $this->resolveRelationships($request);
533533
}
534534

535-
public function index(RestifyRequest $request, bool $toArray = false)
535+
public function index(RestifyRequest $request)
536536
{
537537
// Check if the user has the policy allowRestify
538538

@@ -588,10 +588,6 @@ public function index(RestifyRequest $request, bool $toArray = false)
588588
'data' => $data,
589589
]);
590590

591-
if ($toArray) {
592-
return $result;
593-
}
594-
595591
return response()->json($result);
596592
}
597593

0 commit comments

Comments
 (0)