Tuesday, April 11, 2017

Editing product page with dimsav/laravel-translatable

im using a package called Laravel-Translatable

but is giving me more problemns that i expect, mainly with quite simple tasks. For example i have a list of all records (products), and each of them haves 2 languages translated (en,es). But now i need to edit the product information to put in the inputs fields, and for this i wish in my edit page get all the translated details (title, description), but for some reason, is returning me only one language, it doesnt return all the translated details from a specific product:

ex: return Product::where('id', '2')->get();

Somebody uses this package?



via Pedro

Advertisement