laravel-localization icon indicating copy to clipboard operation
laravel-localization copied to clipboard

in laravel 9 error not showing route

Open bahramiholding opened this issue 2 years ago • 4 comments

Hello In Laravel 9, displaying the route does not display page information and displays a white screen if I used the following commands

route: trans: clear

bahramiholding avatar Jun 08 '22 08:06 bahramiholding

Thanks! This helped me! I just hit 404 for all routes and I could not see any information in the logs.

This is the full command if it is unclear for anyone.

php artisan route:trans:clear

blomdahldaniel avatar Jul 21 '22 08:07 blomdahldaniel

@blomdahldaniel && @a-bahrami , could you guys confirm if you are getting 404 for translated routes after you cache the routes?

So, when you add trait to RouteServiceProvider as described here and run php artisan route:trans:cache, you still can't access translated routes? And everything working when you clear the cache?

tsekka avatar Aug 04 '22 12:08 tsekka

@tsekka The issue arised when I upgraded from Laravel 8 to Laravel 9. After installing everything and clearing the laravel chache I got the 404 from this package. But after i ran php artisan route:trans:cache then it worked again.

blomdahldaniel avatar Aug 12 '22 06:08 blomdahldaniel

I can confirm the bug, persist in a fresh laravel 10 installation, after caching the routes the non default routes returns 404

StefanoTesla avatar Nov 14 '23 07:11 StefanoTesla