Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel update all relations

$position->users()->update(['position_id' => 4]);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #update #relations
ADD COMMENT
Topic
Name
5+1 =