Sonu's avatar
Level 3

Laravel 5 Pagination Problem Help Needed.

I am Facing A Pagination Problem At My View Page

Here is My Function public function view($id) {

    $useriformation = DB::table('users')->paginate(3);
    return view('views')->with('useriformation', $useriformation);
}

But when i try to Generate Pagination At My View {!! $value->render() !!} I Got This Error

Call to undefined method stdClass::render()

0 likes
3 replies
rodrigo.pedra's avatar
Level 56

Try this:

{!! $useriformation->render() !!}

You set the pagination to be stored in this variable.

beznez's avatar

I'm not sure what $value is referring to, but the object needs to be stdClass to use the render method. Try it with {!! $userinformation->render() !!}.

Sonu's avatar
Level 3

Thanks bezenz And Rodrigo {!! $useriformation->render() !!} Its Works :D

Please or to participate in this conversation.