What could be the solution? Thanks in advance!
CodePudding user response:
this line:
$fileValue= T_S_Ticket::where("tstID","=",$id)->get();
return a collection, so when you use 'with' the next line you got this error. to fix it, simply load the relation and take the only result in the same line:
$fileValue= T_S_Ticket::with('fields')->find($id);
CodePudding user response:
Please refer to the given link. the parameter should be similar like the example of the given link.