I think you might have a namespace issue. I mean you might refer wrong User model, not this one, or just simply forgot to do use app\User; in your code.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community