I have a laravel 5.0 project and i'm working with the pagination now but when i click it theirs nothing changing to the next page it remain to the same data and only url change ever i click the next button? Anyone knows or encounter this problem?
My controller
public function($ship_id){
$members = Member::where('ship_id','=',$ship_id)->latest()->paginate(3);
$members->setPageName('members_page');
$pendings = AddRequest::where('ship_id','=',$ship_id)->paginate(3);
$pendings->setPageName('pendings_page');
return view('pages.Organization.List-Of-Organization-Scholar',compact('ship','schol','pendings','members','count_member','recommends'));
}
//
{!! $members->appends(array_except(Request::query(), 'members_page'))->render()!!}
{!! $pendings->appends(array_except(Request::query(), 'pendings_page'))->render()!!}
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kM4nAx
via IFTTT
Aucun commentaire:
Enregistrer un commentaire