title: (Laravel) only retrieving users that have a relationship
body: <p>In my site I have users and items. Users can create items. I want to get an array that has all users, where the users which have an item go first and the users which do not have an item go after.</p>
  
  <p>So far I have done this:</p>
  
  <pre><code>$users = User::all();
  foreach($users as $user) {
      if ($user-&gt;item) {
          $sortedUsers + $user;
      }
  // now loop again and add users without relationship
  </code></pre>
  
  <p>This is pretty inefficient and I'm sure there's a much better way to do it.  </p>