Hey! It sounds like your User model doesn't have an id?
Whatever your "user" is will need to return your identifying attribute. By default it's id, but you can add this function to your User (or whatever) to return the right id column:
publicfunctiongetAuthIdentifierName(){// Change this to be your id column of your databasereturn'id';}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Undefined index: id in file \vendor\laravel\framework\src\Illuminate\Auth\GenericUser.php on line 44
When trying to make a request I receive this error
Hey! It sounds like your
User
model doesn't have an id?Whatever your "user" is will need to return your identifying attribute. By default it's id, but you can add this function to your
User
(or whatever) to return the right id column: