public function update($id, Request $request) { $user = UserAction::findOrFail($id); $input = $request->all(); $user->fill($input)->save(); Session::flash('flash_message', 'user successfully updated!'); return redirect()->back(); }
public function show($id) { $users = UserAction::findOrFail($id); return View('users.show')->with('users', $users); }