Fixes on tag updating
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user