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