title: how to get the first element of a list in laravel?
body: <p>My problem is not difficult :) i use <strong>Laravel 4</strong>, and i just want to get the first element of my list, my code is :</p>
  
  <pre><code>public function index()
  {
      $userid = User::lists('id'); // here i want to get the first element of my list
      $services = User::find($userid)-&gt;service;
      $username = User::lists('username');
  
      return View::make('services.index',array('services'=&gt; $services,'username'=&gt;$username));
  }
  </code></pre>
  
  <p>so if <strong>someone</strong> has any idea i will be very appreciative :)</p>