Laravel 5 uses namespaces havily. Your User class is in App\User namespace, unless you changed your App namespace, but I doubt it. Add the following before your controller's class declaration:
use App\User;
I know I tried that a few times but ... Thanks, it is working for me now. Got to get used to the namespacing
Yes, it is worth it. :) Namespacing seems like pain in a** at first, but you will love it soon.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community