1$post = Post::find(1);$post->comments()->saveMany([ new Comment(['message' => 'First comment']), new Comment(['message' => 'Second comment']),]);
1class User extends Model
2{
3 public function phone()
4 {
5 return $this->hasOne('App\Phone');
6 }
7}
8