mercredi 22 février 2017

Edit multiple records

I'm trying to make this small CV type profile with Laravel and I encountered this problem that I'm not sure how it should be resolved, the correct way. In the user profile, I have a category where the user can add Employment History. Obviously, a user can add multiple places where he worked. I do this using modals and it works, I can store them in the database.

The thing is, now I want the user to be able to edit what he entered. So, I made an edit button which triggers a modal window where he can edit the database record. What I don't know is how I can take the specific id of the record so I can populate the modal window and then save any changes.

To sum this up because I'm not sure if I was clear enough..

I have 3 entries in DB for Employment History + 3 Edit links for each entry. Then, that Edit link should lead to a modal window of the specific entry where the user can edit it.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2md6xrx
via IFTTT

Aucun commentaire:

Enregistrer un commentaire