Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel attach once

$user->roles()->syncWithoutDetaching([1, 2, 3]);
 
PREVIOUS NEXT
Tagged: #laravel #attach
ADD COMMENT
Topic
Name
7+8 =