Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel session add array

// set products.name as array
session()->put('products.name', []);


// somewhere later
session()->push('products.name', $name1);

// somewhere else later
session()->push('products.name', $name2);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #session #add #array
ADD COMMENT
Topic
Name
1+8 =