Commit 49fac09f authored by Nicolas Widart's avatar Nicolas Widart

Using app() helper to get the locale

parent b60dd8ad
...@@ -143,7 +143,7 @@ trait TaggableTrait ...@@ -143,7 +143,7 @@ trait TaggableTrait
if ($tag === null) { if ($tag === null) {
$tag = new Tag([ $tag = new Tag([
'namespace' => $this->getEntityClassName(), 'namespace' => $this->getEntityClassName(),
locale() => [ app()->getLocale() => [
'slug' => $this->generateTagSlug($name), 'slug' => $this->generateTagSlug($name),
'name' => $name, 'name' => $name,
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment