You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
localization route not working after php artisan route:cache. It's return 404.
It's work perfect without route cache.
Create route in web.php
Route::group(
[
'prefix' => LaravelLocalization::setLocale(),
'middleware' => ['localize']
], function () {
Route::get('/', 'HomeController@index')->name('index');
}
);
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
The text was updated successfully, but these errors were encountered:
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
localization route not working after php artisan route:cache. It's return 404.
It's work perfect without route cache.
Route::group(
[
'prefix' => LaravelLocalization::setLocale(),
'middleware' => ['localize']
], function () {
Route::get('/', 'HomeController@index')->name('index');
}
);
Localization route should work after php artisan config:cache
Route::groups
: LaravelLocalizationRoutesThe text was updated successfully, but these errors were encountered: