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
if ($tag === null) {
$tag = new Tag([
'namespace' => $this->getEntityClassName(),
locale() => [
app()->getLocale() => [
'slug' => $this->generateTagSlug($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