Closed Gummibeer closed 1 year ago
The translation() should be refactored to the new hasOne()->ofMany() relationship type. https://laravel.com/docs/9.x/eloquent-relationships#has-one-of-many
translation()
hasOne()->ofMany()
https://github.com/Astrotomic/laravel-translatable/blob/6f2e3855836d46ab7ad3dabd269a400404f8b42c/src/Translatable/Traits/Relationship.php#L64-L69
The
translation()
should be refactored to the newhasOne()->ofMany()
relationship type. https://laravel.com/docs/9.x/eloquent-relationships#has-one-of-manyhttps://github.com/Astrotomic/laravel-translatable/blob/6f2e3855836d46ab7ad3dabd269a400404f8b42c/src/Translatable/Traits/Relationship.php#L64-L69