The times I encounter this error is when I defined the same model name (User in your case) in another Model. So, instead of the model name matching the filename, I inadvertently used a model name already defined elsewhere. The other way I encountered this error was when I defined the model more than once in the Controller. Both are "duhhhhh" moments, for me that is.
I was able to usually find this error, including the offending file(s) while doing a "composer update".
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community