argument('hierarchy_id'); $hierarchy = HierarchyFtth::findOrFail($hierarchy_id); $project = Project::find($hierarchy->project_id); $project->calculation_status = true; $project->save(); $data = MasterFunctionsHelper::CalculateSCurve(null, $hierarchy_id); $project->scurve = json_encode($data); $project->calculation_status = true; $project->save(); } }