Try using App\Models\Phone at the top.
Phone::where() call wasn't working because I wasn't using ->get(), and Phone::all() works, but for some reason calling $phone->save(); still won't work. Very strange.
Tried using App\Models\Phone, namespace doesn't seem to be the problem.
I had the same problem, you should look to capital usage in class name and file name and make sure the are the same. Good luck!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community