Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel eloquent batch insert

$data = [
    ['name' => 'John', 'age' => 25],
    ['name' => 'Maria', 'age' => 31],
    ['name' => 'Julia', 'age' => 55],
];

Model::insert($data);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #eloquent #batch #insert
ADD COMMENT
Topic
Name
7+5 =