title: Login using Auth in Laravel 5.4 with or condition
body: <p>I have login form with 2 fields. First can take both email or mobile a nd second one is password.</p>
  
  <p>How can I check this using auth ?</p>
  
  <p>my code snippet is:-</p>
  
  <pre><code>if ( Auth::check([
              'email' =&gt; $request-&gt;email, 
              'mobile' =&gt; $request-&gt;email, 
              'password' =&gt; $request-&gt;password,
              false, 
              false
          ])) 
      {
          $user = Auth::user();
          return $user;
      }
  </code></pre>
  
  <p>But this thing is combining the keys with and operator. How can I achieve email Or mobile and password.</p>