/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update(UpdateRequest $request, $id) { $role = Role::findOrFail($id); $role->update($request->all()); $role->permissions()->sync($request->permissions); return redirect('roles/admin')->with('message', 'Role updated.'); }
/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update(UpdateRequest $request, $id) { $event = Event::withHidden()->findOrFail($id); $event->update($request->all()); $event->tags()->sync($request->input('tags', [])); return redirect('events/admin')->with('message', 'Event updated.'); }
/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update(UpdateRequest $request, $id) { Permission::findOrFail($id)->update($request->all()); return redirect('permissions/admin')->with('message', 'Permission updated.'); }
/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update(UpdateRequest $request, $id) { Tag::findOrFail($id)->update($request->all()); return redirect('tags/admin')->with('message', 'Tag updated.'); }
/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update(UpdateRequest $request, $id) { $userInput = $request->all(); User::findOrFail($id)->update($userInput); return redirect('users/admin')->with('message', 'User updated.'); }
/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update(UpdateRequest $request, $id) { $venue = Venue::withHidden()->findOrFail($id); $venue->update($request->all()); $venue->tags()->sync($request->input('tags', [])); return redirect('venues/admin')->with('message', 'Venue updated.'); }
/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update(UpdateRequest $request, $id) { $organization = Organization::withHidden()->findOrFail($id); $organization->update($request->all()); $organization->tags()->sync($request->input('tags', [])); return redirect('organizations/admin')->with('message', 'Organization updated.'); }