Support the ongoing development of Laravel.io →
Requests Database Forms
Last updated 2 years ago.
0

you dont need to take the ids of the related model. you can just use associate or attach methods to bind the relation. This is good because you can pipe the syntax. please check the documentation for details.

if you dont like that you can just use $model->id = $id; it will still work.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

AtomicRSA atomicrsa Joined 24 Jun 2015

Moderators

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.