Laravel Implicit Controller pagination
<p>I have one of routes defined like this in laravel routes file.</p>

<pre><code>Route::controller('login/home/admin/', 'AdminController');
</code></pre>

<p>But it seems laravel pagination does not work in methods. So i changed Route to allow <code>page</code> variable like this in one of the methods.</p>

<pre><code>Route::get('login/home/admin/users/{page}', 'AdminController@getUsers');
Route::controller('login/home/admin/', 'AdminController');
</code></pre>

<p>Now problem is <code>login/home/admin/users/2</code> loads but pagination does not work and if I try this <code>login/home/admin/users?page=2</code> I am redirected.</p>

<p><strong>EDIT:</strong></p>

<p>My method is defined like this and does not work.</p>

<pre><code>public function getUsers(){
   var_dump( Input::get('page') ); // Returns NULL
   $users = User::paginate(10);
   ...
   ...
}
</code></pre>

<p>and in view</p>

<pre><code>...
{{ $users-&gt;links() }}
...
</code></pre>

<p>This view generates pagination but only first page works. Page 2 and other pages show records of page 1. </p>

<p>I doubt its because <code>Input::get('page')</code> is not working for some reason.</p>

<p><strong>EDIT 2</strong></p>

<p>None of following routes worked for me.</p>

<pre><code>Route::get('login/home/admin/users/', 'AdminController@getUsers');
Route::controller('login/home/admin/', 'AdminController');
</code></pre>

<p>and</p>

<pre><code>Route::get('login/home/admin/users/{page}', 'AdminController@getUsers');
Route::controller('login/home/admin/', 'AdminController');
</code></pre>

<p>and</p>

<pre><code>Route::controller('login/home/admin/', 'AdminController');
</code></pre>