Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel best practices

$post = Post::find(1);$post->comments()->saveMany([ new Comment(['message' => 'First comment']), new Comment(['message' => 'Second comment']),]);
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #Laravel #practices
ADD COMMENT
Topic
Name
9+8 =