Astrotomic / laravel-translatable

A Laravel package for multilingual models
https://docs.astrotomic.info/laravel-translatable/
MIT License
1.23k stars 155 forks source link

Translations aren't added automatically when mass update #280

Closed qualishovt closed 2 years ago

qualishovt commented 2 years ago

Hello, thank you for this package. I have an issue. Your documentation says this:

Saving the request

Both ways are ready to save the translatable attributes to the model without any other modification.

public function update(Request $request, Post $post)
{
  $post->update($request->all());
}

https://docs.astrotomic.info/laravel-translatable/usage/forms#saving-the-request

However, translation fields aren't inserted or updated unless I call translateOrNew($locale) method. Can you help me with this?

Gummibeer commented 2 years ago

Have you configured the allowed locales? And what's your configuration at all and what does the request look like?

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days