DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+8 =
Submit