Sawkat Chowdhury
Sawkat Chowdhury

Reputation: 28

how to split a multiple array, to insert different tables in laravel

I have two array within a array.How to seperate the array into 2 different array in where color and size array will be in two differnt array .

enter image description here

Upvotes: 0

Views: 65

Answers (1)

Robo Robok
Robo Robok

Reputation: 22693

If I understand your question correctly:

$table2 = $parameters->get('color');
$table3 = $parameters->get('rank');

$parameters->remove('color');
$parameters->remove('rank');

$table1 = $parameters->all();

Upvotes: 1

Related Questions