crp87
05/15/2023, 5:46 AM$item->translations->first()->meta_title
but: $item->meta_title
dose not work. But seems like an overkill to execute an additional SQL for every required translation. Accessing them through getTranslationsArray() seems also not nice because i have to put some logic inside the view.
The package>capsule>model is generated with HasTranslations support and they also work properly on twill admin interface but when I try to access them individually on the page model ($item), they won't work. I can see the translations being loaded when dumping the $item with dd().
Did I just miss something?ifox
05/15/2023, 10:33 AMifox
05/15/2023, 10:34 AMcrp87
05/15/2023, 5:30 PMcrp87
05/15/2023, 5:30 PMhttps://cdn.discordapp.com/attachments/1107544427888644177/1107721808087629925/Bildschirmfoto_2023-05-15_um_19.30.49.png▾
ifox
05/15/2023, 8:57 PMcrp87
05/15/2023, 9:06 PMcrp87
05/15/2023, 9:10 PMifox
05/15/2023, 9:16 PMifox
05/15/2023, 9:17 PMcrp87
05/15/2023, 9:20 PM