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

Prefixes in wrong order when Route::prefix groups #9

Closed ghost closed 5 years ago

ghost commented 5 years ago

When using route groups that have a prefix defined will have the prefixes set in the wrong order.

Route::prefix('backend')->group(function () {
    Route::multilingual('/users', 'UsersController@index')->name('backend.users.index');
});
Expected Output Actual Output
en/backend/users backend/en/users
chinleung commented 5 years ago

@ef2-delanoderooij Nice catch. This is fixed in v1.2.2.