ifox
05/09/2022, 4:13 PMifox
05/09/2022, 4:17 PMcooz_master
05/09/2022, 4:19 PMkalle
05/09/2022, 4:19 PMifox
05/09/2022, 4:19 PMkalle
05/09/2022, 4:20 PMcooz_master
05/09/2022, 4:23 PMkalle
05/09/2022, 4:28 PMifox
05/09/2022, 5:16 PMdakaalim
05/09/2022, 10:15 PMtwill.media_library.translated_form_fields to true, not only it enables all medias fields to be translatable, it also forces all medias field translated value set to true. The problem I'm facing now is, I do want to translate medias, but only when I choose which field to. So I tried this:
'media_library' => [
'translated_form_fields' => true,
],
@formField('medias', [
'name' => 'company_logo',
'label' => 'Company Logo',
'translated' => false,
])
and I got
ErrorException
PHP 8.0.18
9.11.0
Undefined array key "en"dakaalim
05/09/2022, 10:18 PMtwill.media_library.translated_form_fields set to true, medias field's translated cannot be false?ifox
05/09/2022, 10:22 PMdakaalim
05/09/2022, 10:24 PMfield level, you mean on the form.blade.php right ?ifox
05/09/2022, 11:04 PMtrungpolit
05/10/2022, 3:50 AMHarings Rob
05/10/2022, 6:03 AMifox
05/10/2022, 7:29 AMphp
DB::table(config('twill.users_table'))->insert([
'published' => 1,
'name' => $name,
'email' => $email,
'password' => Hash::make($password),
'role' => $role,
]);kalle
05/10/2022, 7:32 AMifox
05/10/2022, 7:34 AMkalle
05/10/2022, 7:36 AMifox
05/10/2022, 7:43 AMifox
05/10/2022, 7:43 AMifox
05/10/2022, 7:43 AMkalle
05/10/2022, 7:59 AMRayderxx
05/10/2022, 8:38 PMamargoCactus
05/10/2022, 8:47 PMamargoCactus
05/10/2022, 8:49 PMifox
05/10/2022, 9:41 PM@formColumnsifox
05/10/2022, 9:42 PM