check this final up
This commit is contained in:
parent
5007f38456
commit
f6ca5292bf
|
|
@ -13,8 +13,7 @@
|
|||
class ContractController extends Controller
|
||||
{
|
||||
public function contract(ContractRequest $request){
|
||||
$contract = Contract::with('resolution_basis')->where('InputNumber',$request->get('number'))->first();
|
||||
if($contract)
|
||||
if($contract = Contract::with('resolution_basis')->where('InputNumber',$request->get('number'))->first())
|
||||
{
|
||||
return ContractResource::make($contract);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ public function toArray($request)
|
|||
'Workflow_ID' => $this->Workflow_ID,
|
||||
'Workflow' => trans('imported.workflow.'.$this->Workflow_ID),
|
||||
'Remark' => $this->Remark,
|
||||
'ResolutionBasis' => ResolutionBasesResource::collection($this->resolutions),
|
||||
'ResolutionBasis' => ResolutionBasesResource::collection($this->resolution_basis),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue