Answer the question
In order to leave comments, you need to log in
How to update a list of data using Relationships in Laravel?
Hello!
In Laravel, I create a list of data using hasMany :
$user = User::find($id);
$user->phones()->createMany($myArray);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question