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

how to get value if we use the alias for particular column name in joining the multiple table

superanil opened this issue · comments

I'm using this and some time i need to join the two or multiple table and i give any particular column name convert as alias and i try to get locale value form $data->getTranslation('Alias_column_name','langName') its give a error of

"Cannot translate attribute category_name as it's not one of the translatable attributes: name
thie the category_name is my alias for another field of other table

to give and solution for alias filed in join