Skip to content

Commit

Permalink
change attribute[0] with getTranslatableAttributes()[0]
Browse files Browse the repository at this point in the history
  • Loading branch information
mohrajab committed Dec 12, 2018
1 parent c20bd38 commit 110a141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Multilingual.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected function resolveAttribute($resource, $attribute)
$result[] = [
'label' => $locale,
'value' => $key,
'translated' => in_array($key, array_keys($resource->getTranslations($resource->translatable[0])))
'translated' => in_array($key, array_keys($resource->getTranslations($resource->getTranslatableAttributes()[0])))
];
}

Expand Down

0 comments on commit 110a141

Please sign in to comment.