我的输入看起来像这样
array:3 [
"year" => "2018"
"tableData" => array:1 [
0 => "DT_NSO_1100_008V1"
]
"viewType" => "1"
]
我需要获取 tableData 的代码,我使用了 foreach 但它给了我一个错误
foreach ($input['tableData'] as $key => $value) {
$ushChildTable = UshTableCode::where('code', $value)->first();
}
我的错误看起来像这样

我怎样才能得到这些代码家伙?
皈依舞
RISEBY
随时随地看视频慕课网APP