Closed marijoo closed 4 years ago
Having the same issues.
@marijoo thank you for providing an example. Sorry for taking so long, I had not PHP 7.3 installed and it took me a moment to setup docker.
Anyway, I just noticed that you did not use the LoadsTranslatedCachedRoutes
trait in your RouteServiceProvider
as explained here. This should definitely be pointed out in the docs. I will create a MR for it.
Btw: route:cache
will break the usage of this package. And to clear route cache one should use route:trans:clear
Whoa, I did not notice anything like this at all. I will try this in the coming week and respond back. Thank you! 🙌🏻
Whoa, I did not notice anything like this at all. I will try this in the coming week and respond back. Thank you! 🙌🏻
Had the same issue / did not notice the trait for the RouteServiceProvider. Added the mentioned LoadsTranslatedCachedRoutes
trait and can confirm this works as expected.
Thank you, I can now confirm this works.
@iwasherefirst2 I created a minimal setup on a fresh Laravel 7 installation and put it in a repo. You can find the commit here: https://github.com/marijoo/laravel-localization-route-cache/commit/90924fba385ab8e5074ab95a3a1c96f6d6863f36
As you can see this is a minimal setup but the problem occurs as described above:
Can you reopen this issue, please? If I can further help, please don't hesitate.
Originally posted by @marijoo in https://github.com/mcamara/laravel-localization/issues/736#issuecomment-691221984