'auth'], function ($router) { Route::post('register', 'AuthController@register'); Route::post('login', 'AuthController@login'); Route::get('current', 'AuthController@getAuthenticatedUser'); }); Route::resource('/companys', 'CompanyController'); Route::get('/companys/{company}/check', 'CompanyController@check')->name('companys.check'); Route::get('/companys/{company}/config', 'CompanyController@config')->name('companys.config'); Route::get('/province','DistrictController@provinces'); Route::get('/province/{province_code}/amphoe','DistrictController@amphoes'); Route::get('/province/{province_code}/amphoe/{amphoe_code}/district','DistrictController@districts'); Route::get('/province/{province_code}/amphoe/{amphoe_code}/district/{district_code}','DistrictController@detail');