We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Hello, first of all. Thanks for the package!
I'm trying to redirect the home page (/) to another localized section but I'm not having any luck so far.
Route::localized(function () { Route::name('front.') ->group(function () { Route::redirect('/', Lang::uri('events'))->name('home'); Route::name('events.')->group(function () { Route::get(Lang::uri('events'), ListEventsController::class)->name('index'); }); }); });
I would like to go from domain.com => domain.com/en/events but I'm not able to get it to work.
domain.com
domain.com/en/events
Is this supported? Am I not reading the documentation properly?
Thanks a lot.
The text was updated successfully, but these errors were encountered:
I've noticed that if I turn that Route::redirect to the following, it works.
Route::middleware(SetLocale::class) ->get('/', function () { return redirect()->route('front.events.index'); })->name('home');
If I want to redirect the base domain to a route I also have to add another redirect outside the Route::localized() group.
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Hello, first of all. Thanks for the package!
I'm trying to redirect the home page (/) to another localized section but I'm not having any luck so far.
I would like to go from
domain.com
=>domain.com/en/events
but I'm not able to get it to work.Is this supported? Am I not reading the documentation properly?
Thanks a lot.
The text was updated successfully, but these errors were encountered: