First of all, I apologize for the main question, but I'm new to Laravel and Lumen and am trying to learn it.
I am trying to log in using Lumen, but I have errors. I'm trying to write
if (auth()->attempt(...) { }
I tried another approach like this
if (\Auth::attempt(...) { }
In both cases, an error
Argument 1 passed to Illuminate \ Auth \ EloquentUserProvider :: validateCredentials () must be an Illuminate \ Contracts \ Auth \ Authenticatable instance, the App \ User instance specified
I am also sure that I check all the inputs from the form.
source
share