trans_setlocale().'/admin/location'], function () { Route::resource('districts', 'Locations\Location\Http\Controllers\DistrictsAdminWebController'); }); // Admin API routes for districts Route::group(['prefix' => trans_setlocale().'api/v1/admin/location'], function () { Route::resource('districts', 'Locations\Location\Http\Controllers\DistrictsAdminApiController'); }); // User web routes for districts Route::group(['prefix' => trans_setlocale().'/user/location'], function () { Route::resource('districts', 'Locations\Location\Http\Controllers\DistrictsUserWebController'); }); // User API routes for districts Route::group(['prefix' => trans_setlocale().'api/v1/user/location'], function () { Route::resource('districts', 'Locations\Location\Http\Controllers\DistrictsUserApiController'); }); // Public web routes for districts Route::group(['prefix' => trans_setlocale().'/locations'], function () { Route::get('/', 'Locations\Location\Http\Controllers\DistrictsPublicWebController@index'); Route::get('/{slug?}', 'Locations\Location\Http\Controllers\DistrictsPublicWebController@show'); }); // Public API routes for districts Route::group(['prefix' => trans_setlocale().'api/v1/locations'], function () { Route::get('/', 'Locations\Location\Http\Controllers\DistrictsPublicApiController@index'); Route::get('/{slug?}', 'Locations\Location\Http\Controllers\DistrictsPublicApiController@show'); }); // Admin web routes for state Route::group(['prefix' => trans_setlocale().'/admin/location'], function () { Route::resource('state', 'Locations\Location\Http\Controllers\StateAdminWebController'); }); // Admin API routes for state Route::group(['prefix' => trans_setlocale().'api/v1/admin/location'], function () { Route::resource('state', 'Locations\Location\Http\Controllers\StateAdminApiController'); }); // User web routes for state Route::group(['prefix' => trans_setlocale().'/user/location'], function () { Route::resource('state', 'Locations\Location\Http\Controllers\StateUserWebController'); }); // User API routes for state Route::group(['prefix' => trans_setlocale().'api/v1/user/location'], function () { Route::resource('state', 'Locations\Location\Http\Controllers\StateUserApiController'); }); // Public web routes for state Route::group(['prefix' => trans_setlocale().'/locations'], function () { Route::get('/', 'Locations\Location\Http\Controllers\StatePublicWebController@index'); Route::get('/{slug?}', 'Locations\Location\Http\Controllers\StatePublicWebController@show'); }); // Public API routes for state Route::group(['prefix' => trans_setlocale().'api/v1/locations'], function () { Route::get('/', 'Locations\Location\Http\Controllers\StatePublicApiController@index'); Route::get('/{slug?}', 'Locations\Location\Http\Controllers\StatePublicApiController@show'); });