Support the ongoing development of Laravel.io →
posted 10 years ago
Eloquent
Last updated 2 years ago.
0
User::where('id', $id)->update(array('username' => Input::get('username'), 'email' => Input::get('email')));
Last updated 2 years ago.
0

showing error like this The HTTP status code "5" is not valid.

Last updated 2 years ago.
0

Quick one to do, if you are using CRUD with resource controllers

$input = $request->all();
$user = User::findorfail($id);
$updateNow = $user->update($input);
Last updated 8 years ago.
0

megadola said:

Quick one to do, if you are using CRUD with resource controllers

$input = $request->all();
$user = User::findorfail($id);
$updateNow = $user->update($input);

thanks. it worked!

0

Sign in to participate in this thread!

Eventy

Your banner here too?

maxguy2099 maxguy2099 Joined 25 Mar 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.