Trying to add a custom field to auth, to check if a user is 'activated' before allowing login
I've tried modifying AuthenticatesUsers.php although I now understand this file shouldnt be edited directly.
Here is what I tried and it did not work.
public function postLogin(Request $request)
{
$this->validate($request, [
$this->loginUsername() => 'required', 'password' => 'required', 'activated' => '1'
]);