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

localization route not working after php artisan route:cache I get 404 #893

Open
MilanUnjiya4149 opened this issue Feb 23, 2024 · 3 comments

Comments

@MilanUnjiya4149
Copy link

localization route not working after php artisan route:cache. It's return 404.
It's work perfect without route cache.

  1. Create route in web.php
    Route::group(
    [
    'prefix' => LaravelLocalization::setLocale(),
    'middleware' => ['localize']
    ], function () {
    Route::get('/', 'HomeController@index')->name('index');
    }
    );
  2. php artisan route:cache

Localization route should work after php artisan config:cache

  • Version of Laravel: 9.0
  • Version of the Laravel-localization package: 1.8
  • Which middleware is used in Route::groups: LaravelLocalizationRoutes
@MilanUnjiya4149 MilanUnjiya4149 changed the title localization route not working after php artisan route:cache. localization route not working after php artisan route:cache I get 404 Feb 23, 2024
@juliangarcess
Copy link
Contributor

Please read the docs about CACHING

@ianfortier
Copy link

@juliangarcess The caching (artisan route:trans:cache) doesn't work either

@juliangarcess
Copy link
Contributor

did you run artisan route:clear?

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

No branches or pull requests

3 participants