title: Laravel 5 pagination issue
body: <p>I am working with laravel 5 pagination and getting some problems. </p>
  
  <p>Here is my code <code>DB::table('users')-&gt;paginate(2)</code> and it returns an object of <code>LengthAwarePaginator</code> Like this : </p>
  
  <pre><code>Illuminate\Pagination\LengthAwarePaginator Object
  (
      [total:protected] =&gt; 4
      [lastPage:protected] =&gt; 2
      [items:protected] =&gt; Illuminate\Support\Collection Object
          (
              [items:protected] =&gt; Array
                  (
                      [0] =&gt; stdClass Object
                          (
                              [id] =&gt; 3
                              [Name] =&gt; shivani
                              [email] =&gt; shivani.ruhela@hotmail.com
                              [password] =&gt; $2y$10$iD1by60rSBvrMjuqwmYLseNIrd4jmvK8sXUEYiXfDjJVcBD02jEbK
                              [updated_at] =&gt; 2015-04-27 05:17:34
                              [created_at] =&gt; 2015-04-27 05:17:30
                              [remember_token] =&gt; guVL5RdcmRXedSBMsfSZSlCeFPfRjEq8vSNQNjtED2ytBHaPCZ3N8G3dmj6C
                          )
  
                      [1] =&gt; stdClass Object
                          (
                              [id] =&gt; 4
                              [Name] =&gt; shivani
                              [email] =&gt; shivani2.ruhela@hotmail.com
                              [password] =&gt; $2y$10$iD1by60rSBvrMjuqwmYLseNIrd4jmvK8sXUEYiXfDjJVcBD02jEbK
                              [updated_at] =&gt; 2015-04-27 05:17:34
                              [created_at] =&gt; 2015-04-27 05:17:30
                              [remember_token] =&gt; guVL5RdcmRXedSBMsfSZSlCeFPfRjEq8vSNQNjtED2ytBHaPCZ3N8G3dmj6C
                          )
  
                  )
  
          )
  
      [perPage:protected] =&gt; 2
      [currentPage:protected] =&gt; 1
      [path:protected] =&gt; http://localhost/shivani/public/check/user-list
      [query:protected] =&gt; Array
          (
          )
  
      [fragment:protected] =&gt; 
      [pageName:protected] =&gt; page
  )
  </code></pre>
  
  <p>My problem is that I want to iterate through this object and retrieve items object that holds database data i.e. name , email etc.</p>
  
  <p>But I don't know how to access protected members from the returned object.</p>