Beispiel #1
0
 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();
 }
Beispiel #2
0
 public function show($id)
 {
     $users = UserAction::findOrFail($id);
     return View('users.show')->with('users', $users);
 }