allow to customize perPage at closet

This commit is contained in:
Pig Fang 2020-07-04 09:30:57 +08:00
parent a28abb70ac
commit feda32b726
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2

View File

@ -59,7 +59,7 @@ class ClosetController extends Controller
->when($request->input('q'), function (Builder $query, $search) {
return $query->like('item_name', $search);
})
->paginate(6);
->paginate((int) $request->input('perPage', 6));
}
public function allIds()