public function update(TagUpdateRequest $request, $id)
    {
        $tag = Tag::findOrFail($id);
        $tag->fill($request->toArray())->save();
        $tag->save();

        Session::put('_update-tag', trans('canvas::messages.update_success', ['entity' => 'Tag']));

        return redirect()->route('canvas.admin.tag.edit', $id);
    }
public function update(TagUpdateRequest $request, $id)
    {
        $tag = Tag::findOrFail($id);
        $tag->fill($request->toArray())->save();
        $tag->save();

        Session::put('_update-tag', trans('canvas::messages.update_success', ['entity' => 'Tag']));

        return redirect()->route('canvas.admin.tag.edit', $id);
    }
public function update ( TagUpdateRequest $ request , $ id ) { $ tag = Tag :: findOrFail ( $ id ) ; $ tag -> fill ( $ request -> toArray ( ) ) -> save ( ) ; $ tag -> save ( ) ; Session :: put ( '_update-tag' , trans ( 'canvas::messages.update_success' , [ 'entity' => 'Tag' ] ) ) ; return redirect ( ) -> route ( 'canvas.admin.tag.edit' , $ id ) ; }
Update the tag in storage.

@param TagUpdateRequest $request
@param int $id

@return \Illuminate\Http\RedirectResponse
Update the tag in storage .