I am trying to save data in Laravel which has multiple arrays.
The array looks like this:
Array
(
[0] => Array
(
[client_personnel_name] => Ron
[client_id] => 52
[client_personnel_email] => [email protected]
)
[1] => Array
(
[client_personnel_name] => John
[client_id] => 52
[client_personnel_email] => [email protected]
)
)
When I save this data:
$personnel = ClientsPersonnel::create($client_personnel);
$personnel->save();
On debugging what data is being created to insert. This is what I get in the attributes where the sent data is stored
[attributes:protected] => Array
(
[updated_at] => 2015-04-23 06:53:05
[created_at] => 2015-04-23 06:53:05
[id] => 2
)
How can I save the data which has multiple arrays?