Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel eloquent bulk insert

$data = array(
    array('name'=>'Coder 1', 'rep'=>'4096'),
    array('name'=>'Coder 2', 'rep'=>'2048'),
    //...
);

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