title: Trying to get property 'name' of non-object laravel 8
body: <p>Trying to get property 'name' of non-object (View: D:\Courses\Buildwithangga\BWAFD\nomads-app\resources\views\includes\admin\navbar.blade.php)</p>
  <p>I'm using Laravel 8, but i did not install jetstream, i install laravel/ui (Is that make any problem??)</p>
  <p>And when i add {{ Auth::user()-&gt;name }} in navbar.blade.php, it will run error</p>
  <p>This is my navbar.blade.php</p>
  
  
  <pre><code>&lt;!-- Sidebar Toggle (Topbar) --&gt;
  &lt;button id=&quot;sidebarToggleTop&quot; class=&quot;btn btn-link d-md-none rounded-circle mr-3&quot;&gt;
    &lt;i class=&quot;fa fa-bars&quot;&gt;&lt;/i&gt;
  &lt;/button&gt;
  
  &lt;!-- Topbar Navbar --&gt;
  &lt;ul class=&quot;navbar-nav ml-auto&quot;&gt;
    &lt;li class=&quot;nav-item dropdown no-arrow&quot;&gt;
      &lt;a class=&quot;nav-link dropdown-toggle&quot; href=&quot;#&quot; id=&quot;userDropdown&quot; role=&quot;button&quot; data-toggle=&quot;dropdown&quot; aria-haspopup=&quot;true&quot; aria-expanded=&quot;false&quot;&gt;
        &lt;span class=&quot;mr-2 d-none d-lg-inline text-gray-600 small&quot;&gt;
          {{ Auth::user()-&gt;name }}
        &lt;/span&gt;
        &lt;img class=&quot;img-profile rounded-circle&quot; src=&quot;https://source.unsplash.com/QAB-WJcbgJk/60x60&quot;&gt;
      &lt;/a&gt;
      &lt;!-- Dropdown - User Information --&gt;
      &lt;div class=&quot;dropdown-menu dropdown-menu-right shadow animated--grow-in&quot; aria-labelledby=&quot;userDropdown&quot;&gt;
        &lt;a class=&quot;dropdown-item&quot; href=&quot;#&quot; data-toggle=&quot;modal&quot; data-target=&quot;#logoutModal&quot;&gt;
          &lt;i class=&quot;fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400&quot;&gt;&lt;/i&gt;
          Logout
        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/li&gt;
  
  &lt;/ul&gt;
  </code></pre>
    
    
  <p>Thankyou :)</p>