title: Laravel Blade check user role
body: <p>In laravel Blade templating we can exclude some parts of HTML with this code:</p>
  
  <pre><code>        @if (Auth::user())
              &lt;li&gt;&lt;a href="{{ url('/home') }}"&gt;Mein Profil&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="{{ url('/admin') }}"&gt;Admin&lt;/a&gt;&lt;/li&gt;
          @else
              &lt;li&gt;&lt;a href="{{ url('/home') }}"&gt;Mein Profil&lt;/a&gt;&lt;/li&gt;
          @endif
  </code></pre>
  
  <p>If user is authenticated then show home and admin links and if user is not authenticated then show only home link.</p>
  
  <p>My question is how to make a check here if user is admin?</p>
  
  <p>I have default login system from laravel and i just added one more column in table users -> ('admin') with tinyint value 1 and in this video 
  <a href="https://www.youtube.com/watch?v=tbNKRr97uVs" rel="noreferrer">https://www.youtube.com/watch?v=tbNKRr97uVs</a>
  i found the code for checking if user is admin </p>
  
  <pre><code> if (!Auth::guest() &amp;&amp; Auth::user()-&gt;admin )
  </code></pre>
  
  <p>and it works in AdminMiddleware.php
  but it doesn't work in blade. How to make this working??</p>