title: ErrorException Method Illuminate\Auth\SessionGuard::company does not exist
body: <p>I am having a problem using Laravel Framework. I am trying to build a simple<code>@if</code>and<code>@else</code>function.</p>
  
  <blockquote>
    <p>ErrorException Method Illuminate\Auth\SessionGuard::company does not exist</p>
  </blockquote>
  
  <p>Here is my code for my layout app.blade.php  </p>
  
  <pre><code>@if(auth::user())
        {{auth::user()-&gt;name}}
      @else
        {{auth::company()-&gt;name}}
      @guest
      &lt;p&gt;i am here&lt;/p&gt;
      @endguest
  </code></pre>