Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

insert value to elements of array laravel

foreach ($ids as $id) {
    $users[] = [
        'id' => $id,
        'status' => flase
    ];
}
User::insert($users);
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #insert #elements #array #laravel
ADD COMMENT
Topic
Name
6+8 =