Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

Ah, sorry for messed up formatting.

Last updated 2 years ago.
0

Try using App\Models\Phone at the top.

Last updated 2 years ago.
0

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.

Last updated 2 years ago.
0

Tried using App\Models\Phone, namespace doesn't seem to be the problem.

Last updated 2 years ago.
0

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!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

bluehazed bluehazed Joined 19 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.