chinleung / laravel-multilingual-routes

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

Route name prefix not applying properly #30

Closed chinleung closed 4 years ago

chinleung commented 4 years ago

At the current moment, if you have a route name prefix, it is applied before the locale in the name:

Example

Route::name('prefix.')->group(function () {
    Route::multilingual('test');
});

Result

prefix.en.test
prefix.fr.test

Expected Result

en.prefix.test
fr.prefix.test