title: validation is not working Laravel custom authentication for bcrypted password
body: <p>I have created a registration system where password are storing in bycript form. But While I am trying to validate for login purpose, it's saying wrong password . My code for authentication is given bellow :</p>
  <pre><code>public function authenticate(Request $request){
      $email=$request-&gt;post('email');
      $password=$request-&gt;post('password');
  
      $result=Admin::where(['email'=&gt;$email,'password'=&gt;$password])-&gt;get();
      if(isset($result['0']-&gt;id)){
          $request-&gt;session()-&gt;put('ADMIN_LOGIN',true);
          $request-&gt;session()-&gt;put('ADMIN_ID',$result['0']-&gt;id);
          return redirect('admin');
      }else{
          $request-&gt;session()-&gt;flash('error','Please enter valid login details');
          return redirect('admin-login');
      }
  }
  </code></pre>