Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel add model to one to many relationship

$model->relation()->save($relatedModel);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #add #model #relationship
ADD COMMENT
Topic
Name
5+6 =