title: Login not working in Laravel using vue.js
body: <p>I'm trying to Login using Laravel and Vue.js its controller code is:</p>
  <pre><code>  public function login(Request $request){ 
  
          $validation = Validator::make($request-&gt;all(),[
              'user_id' =&gt; 'required|email',
              'password' =&gt; 'required|string|min:8|max:15',
          ]);
  
          if ($validation-&gt;fails()) {
              $response['status'] = false;
              $response['message'] = $validation-&gt;errors()-&gt;first();
              return response()-&gt;json($response,200);
          }
  
          if(Auth::attempt(['email' =&gt; request('email'), 'password' =&gt; request('password')])){ 
              $user = Auth::user(); 
              $token =  $user-&gt;createToken('MyApp')-&gt;accessToken;  
     
              $user-&gt;api_token = $token;
              $user-&gt;save();
            
              return response()-&gt;json([
                  'status'=&gt;true,
                  'message' =&gt; 'Login successfully',
                  'user' =&gt; $user,
              ], 200); 
          } 
          else{ 
              return response()-&gt;json(['status'=&gt;false,'message' =&gt; 'Invalid Login'], 200);
          } 
  
      }
  </code></pre>
  <p>but i'm getting Invalid Login message</p>