Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Alzaabi98's avatar

How to update multiple record by sending data to controller from blade view?

HI ,,

I have two models

Father and Child with two tables (fathers and children)..

this link has image of how blade will look.. i cant attach image here :

https://postimg.org/image/rq8kim0jb/

there is a controller with function register that should accept the following records of students and update the database with the selection from father when he clicks register ..

how can accept the data and update the students table then send confirmation email to father//

i am stuck . as these can be multiple records in that table .. please advice..

0 likes
2 replies
ejdelmonico's avatar

You can listen for a UserHasRegistered or something like that and use a Notification to send the email when the event occurs.

Alzaabi98's avatar

I am not sure if i get your point.. but i think still I will need to pass the data from view to controller then store them in database..

then I should listen for events..

the issue is part 1 which is how to send multi rows as request and update the record back in the database

Please or to participate in this conversation.