/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update(EditUserRequest $request, $id) { $result = User::findOrFail($id); $result->fill($request->all()); $result->save(); return Redirect::route('ticket.call.index'); }
/** * Create a new user instance after a valid registration. * * @param array $data * @return User */ protected function create(array $data) { return User::create(['name' => $data['name'], 'email' => $data['email'], 'password' => bcrypt($data['password'])]); }