Support the ongoing development of Laravel.io →

cuviline

Joined 16 Jul 2014

Statistics

Threads 1
Replies 2
Solutions 0
Articles 0

[DOUBT] $user->save() VS User::where()->update();

Hi all, I am beginner in Laravel. I have some doubts. I'm working on a function to edit users, every...

0 Likes
4 Replies
Solved
replied 9 years ago

[DOUBT] $user->save() VS User::where()->update();

pmall said: The common way to update a model is $user = User::find($id); $user->whatever = $what...

0 Likes
replied 9 years ago

[DOUBT] $user->save() VS User::where()->update();

Then it is the only way?? : User::where()->update() Seen documentation : $user = User::find(1); $...

0 Likes

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.