Laravel localization - database content
I am looking at frameworks and CMS to run a project, a website that needs to support localized content.
Laravel looks good and certainly allows you to localize your UI content, but it doesn't seem to support localizing content stored in the database. It seems to be amazing, I wonder if I am missing something? (CakePHP, for example, has a TranslateBehavior for this purpose).
Edit . To be clear, I am asking if there is anything in Laravel to handle this, I know I can code equivalent functionality, but I think that would be a sufficient amount of extra work.
source to share
Changing your data when entering or exiting the database is pretty simple.
If you store the translation key in the database, you can translate it when you pull the data. Use getter and setter methods in the model . You can also look at Model Events .
source to share