/** * 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) { $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) { $organization = Organization::withHidden()->findOrFail($id); $organization->update($request->all()); $organization->tags()->sync($request->input('tags', [])); return redirect('organizations/admin')->with('message', 'Organization updated.'); }