Open roshani3110 opened 3 years ago
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 -
Please help me,
Thanks in advance!!
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 -
Please help me,
Thanks in advance!!