group(function () use ($router){ $router->post('AlarmRecords/handleAlarm', '\catchAdmin\alarm\controller\AlarmRecords@handleAlarm'); // alarmRecords路由 $router->resource('AlarmRecords', '\catchAdmin\alarm\controller\AlarmRecords'); // alarmReport路由 $router->resource('AlarmReport', '\catchAdmin\alarm\controller\AlarmReport'); })->middleware('auth'); $router->group('alarmReport', function () use ($router){ $router->get('getDetail/:id', '\catchAdmin\alarm\controller\AlarmReport@detail'); $router->get('totalGrowth', '\catchAdmin\alarm\controller\AlarmReport@totalGrowth'); })->middleware('auth');