trans_setlocale().'/admin/user'], function () { Route::resource('user', 'Sample\User\Http\Controllers\UserAdminController'); }); // Admin API routes for user Route::group(['prefix' => trans_setlocale().'api/v1/admin/user'], function () { Route::resource('user', 'Sample\User\Http\Controllers\UserAdminApiController'); }); // User web routes for user Route::group(['prefix' => trans_setlocale().'/user/users'], function () { Route::resource('/', 'Sample\User\Http\Controllers\UserUserController'); }); // User API routes for user Route::group(['prefix' => trans_setlocale().'api/v1/user/users'], function () { Route::resource('/', 'Sample\User\Http\Controllers\UserUserApiController'); }); // Public web routes for user Route::group(['prefix' => trans_setlocale().'/users'], function () { Route::get('/', 'Sample\User\Http\Controllers\UserController@index'); Route::get('/{slug?}', 'Sample\User\Http\Controllers\UserController@show'); }); // Public API routes for user Route::group(['prefix' => trans_setlocale().'api/v1/users'], function () { Route::get('/', 'Sample\User\Http\Controllers\UserApiController@index'); Route::get('/{slug?}', 'Sample\User\Http\Controllers\UserApiController@show'); });