Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

attach function in laravel

$book = AppBook::find(2);

$book->authors()->attach($authorId);
Source by www.amitmerchant.com #
 
PREVIOUS NEXT
Tagged: #attach #function #laravel
ADD COMMENT
Topic
Name
9+9 =