You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i set transaltion wrapper in the config file to 'translations' and i want to use it like this:
Post::create([
'user_id'=> $id,
'translations'=> [
'en'=> ['title' => 'test title],
'ar' => 'title'=> 'test arabic title'
]
]);
it gives me unknonw column 'translations' ❗️
in PostTranslation model
i am using fillable= ['post_id', 'title']
this works ✅:
Post::create([
'user_id'=> $id,
'en'=> ['title' => 'test title],
'ar' => 'title'=> 'test arabic title'
]);
when i set transaltion wrapper in the config file to 'translations' and i want to use it like this:
Post::create([
'user_id'=> $id,
'translations'=> [
'en'=> ['title' => 'test title],
'ar' => 'title'=> 'test arabic title'
]
]);
it gives me unknonw column 'translations' ❗️
in PostTranslation model
i am using fillable= ['post_id', 'title']
this works ✅:
Post::create([
'user_id'=> $id,
'en'=> ['title' => 'test title],
'ar' => 'title'=> 'test arabic title'
]);
this doesn't work ❌:
Post::create([
'user_id'=> $id,
'translations'=> [
'en'=> ['title' => 'test title],
'ar' => 'title'=> 'test arabic title'
]
]);
i am using laravel 11
thank you
The text was updated successfully, but these errors were encountered: