How do I add multiple data at once in Laravel?

Solution 1:

If I understand well, you want a single age group to have multiple records associated with it.

If that's the case I recommend you, to use relation in the database to achieve that.

For example these two tables:

Age group age group attributes
id id
age age_group_id
gender
patient type

And when you save, the relationship will have you have counters and a better way to unite everything.

I hope this is useful to you.