Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
getLocalizedURL() is not translating models from dimsav/laravel-translatable #134
As simple as the function
Steps To Reproduce:
I have been facing this error for a very long time, I used to add this line
Also, if you're using Laravel
So I just checked out the events, and there is a huge misunderstanding, I'm not using your library to translate the models! the matter, in fact, your library wasn't translating models before as far as I can remember.
I ended up changing on
Thank you, and it's worth to mention that the values should be urldecoded, otherwise, it will not be treated as a proper input, the second problem here is triggering the translation of such route variable (attribute)!