group(function () use ($router){ // 域名管理 $router->get('domain', '\catchAdmin\domain\controller\Domain@index'); $router->get('domain/', '\catchAdmin\domain\controller\Domain@read'); // 域名解析管理 $router->resource('record/domain', DomainRecord::class); $router->put('record/domain//', '\catchAdmin\domain\controller\DomainRecord@enable'); })->middleware('auth');