main
Jing Li 2024-04-22 10:26:40 +08:00
parent 0c9f3057d4
commit ea9aeebeb3
1 changed files with 6 additions and 0 deletions

View File

@ -68,6 +68,12 @@ class WorkflowController extends Controller
}
$info = $model::query()->with($include)->findOrFail($id);
switch ($model) {
case TaskHygiene::class:
$info = tap($info->task)->setRelation('taskable', $info->unsetRelation('task'));
break;
}
return $resource::make($info);
}