Support the ongoing development of Laravel.io →

wirk

Joined 2 Mar 2014

Statistics

Threads 1
Replies 3
Solutions 0
Articles 0
posted 10 years ago

Inserting a related model and missing FK

I have set up two models: User and Survey and defined their relationship in the model. One user may...

0 Likes
5 Replies
Solved
replied 10 years ago

Inserting a related model and missing FK

This is it! The field was actually also capitalized in the database. That was not an issue for inser...

0 Likes
replied 10 years ago

Inserting a related model and missing FK

If I dd( $user->Id ); I get int 2. I am using L41.

0 Likes
replied 10 years ago

Inserting a related model and missing FK

Thanks for your reply. Still null though, both in the DB and in the dd output

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.