When I looked up this library I expected the table model to be different. #159
AdelinGhanaem
started this conversation in
Ideas
Replies: 1 comment
-
I believe in terms of reading and wiring data to database your suggestion is true. But also sql has array notation acces within json or text fields. And also Laravel's $casts property makes it easier to access specific indexed member of array inside text or json field. Also since no application has definite number of languages it is easier to maintain json field an make all dynamic rather than creating field for each language each time content gets updated with new translation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Instead of this Model/Table
Isn't it more convenient to be something like
LanguageLine::create([
'group' => 'validation',
'key' => 'required',
'en' => 'This is a required field',
'ar' => 'text in arabic',
'gr' => 'text in dutch',
]);
Beta Was this translation helpful? Give feedback.
All reactions