DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
laravel update from query
$affected
=
DB
::
table
(
'users'
)
->
where
(
'id'
,
1
)
->
update
(
[
'votes'
=>
1
]
)
;
Source by laravel.com #
PREVIOUS
NEXT
Tagged:
#laravel
#update
#query
ADD COMMENT
Topic
COMMENT
Name
8+2 =
Submit