Hi everyone,
In the above snippet, you may recoil in horror when you see how bad my spaghetti code is, however I was hoping someone here may be able to provide a few pointers on how to reduce/tidy it up.
What I'm trying to do is essentially manage pages with translations. Each page can have a number of translations, but all must have an English version. When adding a translation, it simply adds another set of inputs, with the locale of the language as the key, i.e. title[fr], content[fr].
Does anyone have any suggestions on how I could clean up the code? Am I over complicating things by how I'm doing them?
Thanks
Gav
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community