vendredi 21 août 2015

Laravel manage translations with one table

I came from CakePhp world and a newbie to Laravel. In cakephp, it was possible to translate all models with one table. The table scheme was something like this:

id,language,model,foreign_key,field,content

Every translations would be in one table and you just have to set in your model which fields you want to translate. I don't find that kind of structure in laravel. It would be too much code/tables if I have to make a extra table for every new model that I want to translate.

So, does anyone have any idea how this could be achieved in laravel? I see there aren't any events while getting data.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1TXXUiG
via IFTTT

Aucun commentaire:

Enregistrer un commentaire