User::where('id', $id)->update(array('username' => Input::get('username'), 'email' => Input::get('email')));
showing error like this The HTTP status code "5" is not valid.
Quick one to do, if you are using CRUD with resource controllers
$input = $request->all();
$user = User::findorfail($id);
$updateNow = $user->update($input);
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!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community