public function update(Tag $tag, StoreTagRequest $request) { $tag->fill($request->all())->save(); flash()->success('Tag updated successfully'); return redirect()->route('tag.index'); }
/** * Updates Tag into database * * @param Tag $tag * @param array $input * * @return Tag */ public function update($tag, $input) { $tag->fill($input); $tag->save(); return $tag; }