|
|
|
|
@ -66,10 +66,11 @@ class ProductController extends CommonController
|
|
|
|
|
|
|
|
|
|
public function edit($id = null, Request $request, FormBuilder $formBuilder)
|
|
|
|
|
{
|
|
|
|
|
DB::enableQueryLog();
|
|
|
|
|
$vo = (new Product())->with(["productItems", "productParamedicLevels" => function ($query) {
|
|
|
|
|
$query->has("paramedicLevel");
|
|
|
|
|
}])->find($id ?: $request->id);
|
|
|
|
|
|
|
|
|
|
dump(DB::getQueryLog());
|
|
|
|
|
dd($vo);
|
|
|
|
|
|
|
|
|
|
$project = (new Project())->with("paramedicLevels")->find($vo->project_id);
|
|
|
|
|
|