title: Trying to get property of non-object [Laravel] when trying to access Auth::user()->name on view
body: <p>I'm trying to get username from view using:</p>
  
  <p><code>Auth::user()-&gt;name</code></p>
  
  <p>and I'm getting</p>
  
  <p><code>Trying to get property of non-object</code></p>
  
  <p>because <code>Auth::user()</code> is NULL. How is this possible? The navbar laravel generates uses the same and it works there.</p>
  
  <p>EDIT: It seems that I can't even get the auth user from the Controller.</p>
  
  <pre><code>Auth::guard('admin')-&gt;check(); //true
  Auth::user(); //null
  </code></pre>
  
  <p>Any ideas?</p>