zofe / rapyd-laravel

deprecated rewritten in rapyd-livewire
MIT License
866 stars 298 forks source link

Add to multiple models with DataEdit #240

Open thedangler opened 8 years ago

thedangler commented 8 years ago

I want to make it so my one form can add data to multiple models is this possible?

tacone commented 8 years ago

Hello! It is currently not possible, unless those model are related using Eloquent relationships. But since it is an interesting perspective. Would you elaborate more on your use case and why you need it?

thedangler commented 8 years ago

Oh k, Do you have an example on how to add data to both tables using DataEdit? The tables i'm referring to do have a relationship.

tacone commented 8 years ago

Take a look here: http://rapyd.loc/rapyd-demo/edit notice the dotted syntax (ie: detail.note)