Skip to content

Commit 63ea43b

Browse files
committed
Return the response from the save
Saving model returns a boolean when the record save is attempted. The same response should be returned by the extended version in order to be useful
1 parent f70e6f8 commit 63ea43b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function save(array $options = array())
3434
$normalizer = empty($normalizer) ? '\Conner\Tagging\TaggingUtil::slug' : $normalizer;
3535

3636
$this->slug = call_user_func($normalizer, $this->name);
37-
parent::save($options);
37+
return parent::save($options);
3838
} else {
3939
throw new \Exception('Tag Name is required');
4040
}

0 commit comments

Comments
 (0)