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
Currently, the withTranslation method does not allow selecting specific fields from the translations table while querying the translateable model. For example, I want to retrieve only certain translations (e.g., description) alongside selected fields from the translateable model, but this is not possible in a clean and efficient way.
I would like the ability to query translations more concisely and intuitively, such as:
Currently, the withTranslation method does not allow selecting specific fields from the translations table while querying the translateable model. For example, I want to retrieve only certain translations (e.g., description) alongside selected fields from the translateable model, but this is not possible in a clean and efficient way.
I would like the ability to query translations more concisely and intuitively, such as:
This approach would be cleaner and more aligned with Laravel's Eloquent principles, avoiding the need for more verbose solutions like:
The proposed syntax makes the query more readable and reduces boilerplate code.
The text was updated successfully, but these errors were encountered: