Auth::attempt accept an associative array with all element you want to check against model defined in auth config file.
You shouldn't override anything.
Auth::attempt(['username'=>'...', 'password'=>'...', 'disabled'=>false])
The only 'special' value in array passed to Auth::attempt is password because it will be automatically hashed, so you must pass it not hashed.
I don't know if disabled is a real field in database or an appended one. And I don't know if Auth::attempt works for appended attributes.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community