ruffsaint's avatar

dear friends, Please i av problem pagination

This is the code :

{{ $user->links() }}

but this is the error:

Call to undefined method Illuminate\Database\Query\Builder::links() (View: C:\xampp\htdocs\authpro\resources\views\account\index.blade.php)

0 likes
7 replies
ruffsaint's avatar

this is the error:

ErrorException in Builder.php line 1992: Call to undefined method Illuminate\Database\Query\Builder::render() (View: C:\xampp\htdocs\authpro\resources\views\account\index.blade.php)

pmall's avatar

@ruffsaint you are calling it on the query builder.

Use $users = User::where(...)->paginate() to get a paginator instance.

ruffsaint's avatar

@usman & @blackbird this the error ErrorException in Builder.php line 1992: Call to undefined method Illuminate\Database\Query\Builder::render() (View: C:\xampp\htdocs\authpro\resources\views\account\index.blade.php)

Please or to participate in this conversation.