/** * Update the channel * @param $id * @param $request */ public function update($id, ChannelRequest $request) { $channel = Channel::findOrFail($id); $channel->update($request->all()); $this->syncTags($channel, $request->input('tag_list')); return redirect('channels'); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $channel = Channel::findOrFail($id); $channel->delete(); return Redirect::Route('admin.channels.index')->withMessage('Success!'); }