What is the better way to create a model with has many relationship?
For example:
I have two models:
- Client (id, name, ...)
- Contact (id, type, value, description)
A client has many Contacts.
Example of create client view: http://ift.tt/1SRReB0
Problems:
- how to deal with validations?
- if validation fails, going back and fill in the contact with the respective errors?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1P5RsOY
via IFTTT
Aucun commentaire:
Enregistrer un commentaire