I am working on a project with Laravel 5.2 I have hidden ID values and I want to search the ID from the database and later I will sort it in descending order. I wrote this code.
Controller
$jsonObject =json_decode(request('membersdata'));
$member = (new Membermasternewdata)->newQuery();
$members=$member->whereIn('id', $jsonObject)->latest();
$members=$members->paginate(50);
View The html page
I got a problem with pagination. For around 400 records, the pagination works. But If I have many records, pagination doesn't work as the URL length exceed its limit. Is there any workaround for this problem?
Thank you!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire