mardi 21 février 2017

Laravel 5 multiple pagination in one page

Why is that in laravel 5.0 the pagination is not working as expected when you click na first pagination the second pagination will also move at the same time?Is there anyway to twick or some trick to solve the issue?Hope anyone here can give clear explaination why this is happening. // Controller

public function ListScholar()
        {
        $id = Auth::User()->id;
        $scholars = Scholar::where('ngo_id', '=', $id)->paginate(2,['*'], 'scholars');

        $allusers = User::where('id','>',0)->paginate(2,['*'], 'allusers');

            return view('pages.Ngo.List-Of-Ngo-Scholar',compact('scholars','allusers'));
        }

//view.blade

<div class="col-mid-12">  {!! str_replace('/?', '?', $scholars->render()) !!} </div>
 <div class="col-mid-12">{!!$allusers->render()!!}</div>



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2lI1u57
via IFTTT

Aucun commentaire:

Enregistrer un commentaire