title: Laravel blade assign css class conditionally
body: <p>I would like to add a css class condionally in my blade body tag by adding auth-container class if url is either /login or /auth/reset-password</p>
  
  <p>so i have</p>
  
  <pre><code>&lt;body&gt; //here add class
  </code></pre>
  
  <p>So i have tried </p>
  
  <pre><code>@if(in_array(  , ['login','/auth/reset-password']) )//stuck here
     &lt;body class="auth-container"&gt;
  @else()
      &lt;body&gt; //no class
  @endif()
  </code></pre>
  
  <p>Am stuck on how to figure out if the url is <code>/login or /auth/reset-password</code> hence add the class <code>auth-container</code></p>