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
Hey,
yes you can use a single polymorphic table as long as this table contains all possible translatable columns.
You will have to override the translations() relationship method to use a polymorphic relation instead of a simple hasMany() and you will have to define the $translationModel property.
But the package isn't made and also not tested for polymorphic translations. So this could always break or require more adjustments.
Could also be that some of the scopes don't work because they only query the ID and not the type column.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Instead of having
posts, posts_translations,
articles, articles_translations,
etc..
can I have
articles, posts,
and translations, something like this
The text was updated successfully, but these errors were encountered: