Support the ongoing development of Laravel.io →

byCedric

Joined 17 Mar 2014

Statistics

Threads 0
Replies 2
Solutions 0
Articles 0

bycedric has not posted any threads yet

replied 10 years ago

How can I get the id from hasMany relationship?

You can use the ID in your Route, then it's just the parameter of the function. For example, if I wa...

0 Likes
replied 10 years ago

How can I get the id from hasMany relationship?

Have a look at this http://laravel.com/docs/eloquent#inserting-related-models. You can define the cl...

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.