step 1 : use ->paginate(no of items per page); instead of ->get(); in the query

example
user::where('active','=','1')->paginate(10);

step 2 : use {!! $users->render() !!} (v5.1) , {{$users->render()}} (v5) and {{$users->links()}} (v4.2) in the view page

example(for laravel v5.1)
{!! $users->render() !!}
example(for laravel v5)
{{$users->render()}}
example(for laravel v4.2)
{{$users->links()}}


logo

PHP Code Builder is a website for auto generating CRUD(Create Read Update and Delete) code for Codeigniter, Laravel, Cake PHP and Core PHP with simple UI & UX Form .. read more