why don't you use this http://laravel.com/docs/4.2/eloquent#inserting-related-models ?
Thank you. My current system has api for every object type so a grid could be build for almost everything and which includes security checks by controllers actions allowed by user in the middleware and logging. The request approach is reusing this for free. Yes, I could have refactor the controllers actions to a separated abstraction layer and do the security and logging based on that but this task will take too much time currently.
@elpd have you had any luck in resolving this or figuring out a better solution. I just happened across the same issue. Trying to do something similar to yourself.
After a little bit more digging I found someone else trying to do the same thing it looks like you should be able to achieve what you are looking for using something on the lines of
here is where I found taylor discussing the issue on github
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us