I need to create the block user section in an app that I am making, for that I did the following.
1.- Add a new boolean field to the USER table
$table->boolean('isBlocked')->default(0);
2.- Then in the LoginController controller
protected function credentials(Request $request)
{
$credentials = $request->only($this->username(),'password');
return array_add($credentials, 'isBlocked', 0);
}
The problem is that both the user has a value of 0 or 1 in the isBlocked field, the system does not let me enter.
That works for versions >= 5.3 and you would need in the model
User.php
to put