My focus is to show the user an error message called "You are inactive or not activated yet", if a user is tried to login with valid credentials but his status field is 0 ( Inactive ).
I am able to redirect a user to login page if his/her status is inactive by below function in LoginController.
protected function credentials(\Illuminate\Http\Request $request) {
return ['email' => $request->{$this->username()}, 'password' => $request->password, 'status' => 1];
}
How can I achieve this in laravel 5.4.
Any guide is helpful for me. Thanks in advance.