Support the ongoing development of Laravel.io →

sclaren

Joined 2 Jul 2014

Statistics

Threads 2
Replies 2
Solutions 0
Articles 0

OneToMany relation -> How to save when i have the id?

I have model called Reference which can have many child References but only one parent Reference. So...

0 Likes
3 Replies

Get last id of new inserted model

Hello, i am very new on Laravel and i ran into a serious problem getting the last id of the current...

0 Likes
0 Replies
replied 9 years ago

OneToMany relation -> How to save when i have the id?

ok... just setting the property is the solution... i did use Input::all() for test purposes and this...

0 Likes
replied 9 years ago

OneToMany relation -> How to save when i have the id?

Hi, Thanks for your answer... ok... that means i have to save the new child reference through the re...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.