I have a non-localized model: Article with the following properties: id, title, description; and I want to localize title and description.
I have seen in the Laravel Backpack documentation that CRUDs can manage localized models using spatie/laravel-translatable, which uses JSON fields for each property Translatable models and multi-language CRUDs.
I think it's a good way to manage new localized models but I can't find a way to pass my Article model to a localized-version without rewriting a big part of the existing software.
There is a good practice I'm missing to do it?
If you already using
Backpack
then usingspatie/laravel-translatable
is best option. You can make yourArticle
model like below to make as translatable mode.