Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to merge 2 laravel eloquent records

$original = new Collection(['foo']);

$latest = new Collection(['bar']);

$merged = $original->merge($latest); // Contains foo and bar.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #merge #laravel #eloquent #records
ADD COMMENT
Topic
Name
5+4 =