spatie / laravel-translatable

Making Eloquent models translatable

Home Page:https://spatie.be/docs/laravel-translatable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Model returns all translations of translatable attribute, not current locale value

Niz0middin opened this issue · comments

Translation is working only calling exact attribute of model. But it is returning whole json with all translations when I'm listing table rows or calling single row. How can I get only one translation by current locale in such situations?

Hello. Check this other issue: #320 (comment)