Pagination
This commit is contained in:
@@ -75,13 +75,14 @@ class PersonController extends Controller
|
||||
|
||||
$qr = $this->process_rule(null,$currentQuery["rules"],$condition);
|
||||
|
||||
if ($qr) $result = $qr->first();
|
||||
if ($qr) $result = $qr->take(5)->paginate(2);
|
||||
else $result = [];
|
||||
|
||||
return Inertia::render(
|
||||
'Rpo/Results',
|
||||
[
|
||||
'result' => $result
|
||||
'result' => $result,
|
||||
'query' => $query,
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user