修改Validate生成

This commit is contained in:
liaofei 2023-04-23 10:04:07 +08:00
parent 5b3e33f721
commit ba7afc38d4

View File

@ -542,7 +542,7 @@ class SystemCrudServices extends BaseServices
$controller = app()->make(Controller::class);
$controller->setFilePathName($filePath['controller'] ?? '')->setbasePath($basePath)->handle($tableName, [
'usePath' => $service->getUsePath(),
'validateName' => '\\' . str_replace('/', '\\', $validate->getUsePath()) . '::class',
'validateName' => '\\' . str_replace('/', '\\', $validate->getUsePath()) . 'Validate::class',
'field' => array_column($options['fromField'], 'field'),
]);
//生成路由