Pagination is not working properly in Laravel 5.2
<p>I am working on a project built with Laravel 5.2.*. I have a table named as <code>users</code> (associated with <code>roles</code> table) and model <code>User</code> for the table. I want to show the users list with pagination. My codes are given below.</p>

<p>In Controller:</p>

<pre><code>public function index()
{
    $page_title = "Manage User";

    $roles = Role::where('status', 1)-&gt;get();

    $users = User::where('status', 1)-&gt;paginate(10);

    return view('users.index', compact('page_title', 'users', 'roles'));
}
</code></pre>

<p>The data format of <code>users</code> variable is like below.</p>

<pre><code>LengthAwarePaginator {#199 ▼
  #total: 3
  #lastPage: 1
  #items: Collection {#202 ▼
    #items: array:3 [▼
      0 =&gt; User {#203 ▶}
      1 =&gt; User {#204 ▶}
      2 =&gt; User {#205 ▶}
    ]
  }
  #perPage: 10
  #currentPage: 1
  #path: "http://localhost/dtrdimen/UsersList"
  #query: []
  #fragment: null
  #pageName: "page"
}
</code></pre>

<p>In View file:</p>

<pre><code>    &lt;table class="table table-bordered table-hover"&gt;
        &lt;tr&gt;
            &lt;th style="text-align: center;" width="10%"&gt;Id&lt;/th&gt;
            &lt;th style="text-align: center;" width="30%"&gt;Name&lt;/th&gt;
            &lt;th style="text-align: center;" width="15%"&gt;Email&lt;/th&gt;
            &lt;th style="text-align: center;" width="15%"&gt;Role&lt;/th&gt;
            &lt;th style="text-align: center;" width="10%"&gt;Status&lt;/th&gt;
            &lt;th style="text-align: center;" width="20%" colspan="3"&gt;Actions&lt;/th&gt;
        &lt;/tr&gt;

        @foreach ($users as $user)
            &lt;tr&gt;
                &lt;td&gt;{{ $user-&gt;id }}&lt;/td&gt;
                &lt;td&gt;{{ $user-&gt;name }}&lt;/td&gt;
                &lt;td&gt;{{ $user-&gt;email }}&lt;/td&gt;
                &lt;td&gt;{{ $user-&gt;role_id }}&lt;/td&gt;
                &lt;td&gt;{{ $user-&gt;status }}&lt;/td&gt;

                &lt;td style=""&gt;

                    &lt;a href="/editUser/{{ $user-&gt;id }}" class="btn btn-warning pull-left", style="margin-right: 5px;"&gt;Edit&lt;/a&gt;

                    {!! Form::open(['method' =&gt; 'delete', 'route' =&gt; ['User.remove', $user-&gt;id], 'class' =&gt; 'pull-left']) !!}
                    {!! Form::submit('Delete', ['class' =&gt; 'btn btn-danger', 'onClick' =&gt; "return check()"]) !!}
                    {!! Form::close() !!}
                &lt;/td&gt;
            &lt;/tr&gt;
        @endforeach
    &lt;/table&gt;
    &lt;div class="text-center"&gt;
        {!! $users-&gt;links() !!} //I also used render() instead of links
    &lt;/div&gt;
</code></pre>

<p>I don't know what I have missed. This code is not showing the pagination. Can anyone help me to fix the issue here ?</p>