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


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)
example(for laravel v4.2)


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