We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4fb6b0 commit ee154b5Copy full SHA for ee154b5
src/Taggable.php
@@ -65,6 +65,11 @@ public function getTagsAttribute()
65
*/
66
public function tag($tagNames)
67
{
68
+ if(!is_array($tagNames)) {
69
+ $tagNames = func_get_args();
70
+ array_shift($tagNames);
71
+ }
72
+
73
$tagNames = static::$taggingUtility->makeTagArray($tagNames);
74
75
foreach($tagNames as $tagName) {
@@ -139,6 +144,11 @@ public function untag($tagNames=null)
139
144
140
145
public function retag($tagNames)
141
146
147
148
149
150
151
142
152
143
153
$currentTagNames = $this->tagNames();
154
0 commit comments