Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for setting a translation directly through the property #80

Merged

Conversation

flofloflo
Copy link
Contributor

I reused some of bbrother's code from the PR #21 to realize the possibility to set translations with the default eloquent syntax ($model->key = 'Translation';) without using magic methods.

If a user sets a translation this way, the current app locale is used to save the translation (as it is already the case for getting translations).

@freekmurze freekmurze merged commit 56dae83 into spatie:master Sep 21, 2017
@freekmurze
Copy link
Member

Very nice, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants