mercredi 31 mai 2017

Laravel 5.4 Show custom error message in login page

I modify the login function in Login controller using credentials function

protected function credentials(\Illuminate\Http\Request $request)
    {
        return ['email' => $request->email, 'password' => $request->password, 'status' => 1];
    }

although the function is work, but i need to return an error message to show that "Account is suspended" in login page if user's status not equal to 1.

How can i modify the error message?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire