title: Laravel auth attempt receiving a parameter from column table
body: <p>Here's my <code>AccountController</code> class:  </p>
  
  <pre><code>public function postLogin(Request $request) {
      if (Auth::attempt(['email' =&gt; $request ['email'], 'password' =&gt; $request ['password']]) ) {
          $auth = \Auth::user()-&gt;role_id;
  
          switch($auth){
              case '1': return redirect()-&gt;route('admin/index');
              break;
              case '2': return redirect()-&gt;route('client/home');
              break;
              case '3': return redirect()-&gt;route('messenger/home');
              break;
          }
      }
  }
  </code></pre>
  
  <p>I want my <code>Auth::attempt</code> method to log on the user if only that specific user's  <code>confirmation_code</code> value is <code>true/1</code>.  </p>
  
  <p>How can I do it? Accepting the specific users confirmation_code in the Auth::attempt function?</p>