chinleung / laravel-multilingual-routes

A package to handle multilingual routes in your Laravel application.
https://github.com/chinleung/laravel-multilingual-routes-demo
MIT License
395 stars 25 forks source link

Issue with / when the site is under a subdirectory #41

Closed kyfr59 closed 4 years ago

kyfr59 commented 4 years ago

Hi Chin and thanks for your great work.

I've an issue with the / route when the site is under a subdirectory, e.g. :

http://local/mysite/

I've 2 locales ['en', 'fr'] and my base is "fr".

All my routes can switch between my locales, except the homepage, on http://local/mysite (in french) :

Any idea to solve the problem ?

Thanks.

Franck.

kyfr59 commented 4 years ago

Route::multilingual('/', function () { instead of Route::get('/', function () { solve the issue 🥇

Sorry for the buzz.

Franck.