Waavi/translation

not supported with url

Opened this issue · 0 comments

hello,

using Laravel version - 5.8

followed https://github.com/Waavi/translation#uri-localization this instruction. but I didn't get the correct route in PHP artisan route: list. and also API gave 404 status code.

here is api.php -

Route::group(['prefix' => '/v1', 'middleware' => ['auth:api'], 'namespace' => 'Api\V1', 'as' => 'api.'], function () { Route::group(['prefix' => \UriLocalizer::localeFromRequest(2),'middleware' => 'localize:2'], function () { Route::get('me', 'UserController@profile'); }); });

Here route list -

Screenshot from 2020-11-09 11-42-56

Please help me,

Thanks in advance!!