DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
laravel many to many relation update
$user->roles()->sync([1, 2, 3]);
Source by laravel.com #
PREVIOUS
NEXT
Tagged:
#laravel
#relation
#update
ADD COMMENT
Topic
COMMENT
Name
8+3 =
Submit