/** * Edit tag * * @param int $id * @return Response */ public function editTag($domain, TagRequest $request, $id) { if ($request->isMethod('put')) { $tagModel = new Tag(); $tag = $tagModel->updateItem($id, $request->all()); } $tag = Tag::find($id); return view('admin.tag.edit-tag', compact('tag')); }