mcamara / laravel-localization

Easy localization for Laravel
MIT License
3.38k stars 515 forks source link

404 not found after route:trans:cache #736

Closed asterism612 closed 4 years ago

marijoo commented 4 years ago

This happens with php artisan optimize, php artisan route:cache as well as with php artisan route:trans:cache. After clearing the cache with php artisan cache:clear routes work again.

iwasherefirst2 commented 4 years ago

Is it related to #712? Please show your route file.

iwasherefirst2 commented 4 years ago

Closing this as a duplicate of #712

marijoo commented 4 years ago

@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:

This happens with php artisan optimize, php artisan route:cache as well as with php artisan route:trans:cache. After clearing the cache with php artisan cache:clear routes work again.

Can you reopen this issue, please? If I can further help, please don't hesitate.

iwasherefirst2 commented 4 years ago

Fixed with https://github.com/mcamara/laravel-localization/commit/0ec9e75c551ce9e5fa094e4c8034bdad13c59b3b