return [
'locales' => [
'en',
'fa',
'ar',
],
'locale_separator' => '-',
'locale' => null,
'use_fallback' => true,
'use_property_fallback' => true,
'fallback_locale' => 'fa',
'translation_model_namespace' => null,
'translation_suffix' => 'Translation',
'locale_key' => 'locale',
'to_array_always_loads_translations' => false,
'rule_factory' => [
'format' => Astrotomic\Translatable\Validation\RuleFactory::FORMAT_ARRAY,
'prefix' => '%',
'suffix' => '%',
],
];
But when I run the following code, translations are also taken in the shipping relation. Why??
$orders = Order::with(['user', 'province', 'city', 'shipping'])->get();
dd($orders->toArray());
my config:
But when I run the following code, translations are also taken in the shipping relation. Why??