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

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

Open MilanUnjiya4149 opened this issue 4 months ago • 3 comments

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 avatar Feb 23 '24 06:02 MilanUnjiya4149