vendredi 26 janvier 2018

Paginate next button not getting next values

Next button of paginate Laravel is showing the same values as the previous page.

public function getInboxEmails(Request $request){
    $to_user_id = Auth::user()->id;
    $Inbox = DB::table('inboxes')->where('to_user_id',$to_user_id)->where('deletedTo',0)->paginate(5);
    return view('mail',['Inbox'=>$Inbox]);
}

Also I noticed that next_page_url=null , prev_page_url : null and total=1. AND current_page is not changing at all , always is 1



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire