Fixes on tag updating

This commit is contained in:
Ludovic CANDELLIER
2021-08-26 09:54:37 +02:00
parent c3a05640ab
commit cfd8086586
3 changed files with 9 additions and 3 deletions

View File

@@ -55,7 +55,9 @@ class Tags
public static function update($data, $id = false)
{
$id = $id ? $id : $data['id'];
return Tag::find($id)->update($data);
$tag = Tag::find($id);
$tag->update($data);
return $tag;
}
public static function destroy($id)