Support the ongoing development of Laravel.io →
Input Database Forms
Last updated 2 years ago.
0

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.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

jovstudios jovstudios Joined 23 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.