[Solved] Argument 1 passed to Illuminate\Auth\SessionGuard::login()

Working on Laravel application can be so confusing when you encounter Argument 1 passed to Illuminate\Auth\SessionGuard::login(). 

To simply fix this, Check your User model file and make neccessary changes.   

classUserextendsAuthenticatable
{
publicfunctionposts(){
return"what ever";
}
}