group(function () use ($router){ $router->get('fences/getSchoolFenceList', '\catchAdmin\fences\controller\Fences@getSchoolFenceList'); $router->get('fences/getKqFenceList', '\catchAdmin\fences\controller\Fences@getKqFenceList'); // fences路由 $router->resource('fences', '\catchAdmin\fences\controller\Fences'); $router->post('fences/saveSchoolFence', '\catchAdmin\fences\controller\Fences@saveSchoolFence'); $router->post('fences/saveKqFence', '\catchAdmin\fences\controller\Fences@saveKqFence'); $router->put('fences/editSchoolFence/', '\catchAdmin\fences\controller\Fences@editSchoolFence'); $router->put('fences/editKqFence/', '\catchAdmin\fences\controller\Fences@editKqFence'); })->middleware('auth');