title: Laravel: Auth::user()->id trying to get a property of a non-object
body: <p>I'm getting the following error "trying to get a property of a non-object" when I submit a form to add a user, the error is apparently on the first line: Auth::user()->id of the following:</p>
  
  <pre><code>$id = Auth::user()-&gt;id;
  $currentuser = User::find($id);
  $usergroup = $currentuser-&gt;user_group;
  $group = Sentry::getGroupProvider()-&gt;findById($usergroup);
  
  $generatedPassword = $this-&gt;_generatePassword(8,8);
  $user = Sentry::register(array('email' =&gt; $input['email'], 'password' =&gt; $generatedPassword, 'user_group' =&gt; $usergroup));
  
  $user-&gt;addGroup($group);
  </code></pre>
  
  <p>Any ideas? I've searched for a while and everything I see says this should work fine. My user is logged in using the Sentry 2 authentication bundle.</p>