First off this is so unreadable, so spotting the error for you must be a pain. Try to make your code meaningful.
Now, the problem is here:
$arrData[] = array('core_values'=>$core_values[$key], 'behavioral'=>$behavioral[$key]);
// this makes $arrData numeric array:
// $arrData = array(
// 0 => array('core_values' => 'Teamwork', 'behavioral' => $behavioral['Teamwork']),
// ...
// )
$values->core_values = $arrData[$n];
$values->behavioral = $arrData[$n];
// while here you try to call $arrData['Teamwork'];
Should you need help with sorting this out, just say so.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community