generate token when user fill in username and password
$credentials = $request->only('email', 'password'); $token = JWTAuth::attempt($credentials);