Lavaral 5.4 manually authenticated users have been authenticated incorrectly all the time

problem description

lavaral 5.4 manually authenticated users have been authenticating all the time

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redirect;

class LoginController extends Controller
{
    // 
    public function index()
    {
        return view("login.login");
    }

    // 
    public function login()
    {
//        dd(\request()->all());
        //
        $this->validate(\request(), [
            "email" => "required|email",
            "password" => "required|min:6|max:12",
            "is_remember" => "integer"
        ]);
        //
        $user = \request(["email", "password"]);
        $is_remember = boolval(\request("is_remember"));

        if (\Auth::attempt($user, $is_remember)) {
            return redirect("/posts");
        }
        return \Redirect::back()->withErrors("");

    }

    // 
    public function logout()
    {
        return null;
    }
}

Log in with the correct mailbox password and keep prompting that the password and mailbox do not match

Php
Apr.28,2021
Menu