Support the ongoing development of Laravel.io →
Eloquent Laravel
Last updated 2 years ago.
0

There are different ways we can define relationships. There are hasOne, hasMany, belongsTo, belongsToMany, and more. Read the Eloquent Relationship docs to see all the things you can do , 'other_key' like primary_key or other_key that use to grouped one table to other

https://laravel.com/docs/5.6/eloquent

0

other_key refers to the primary key of your model. Here other_key is the primary key of Thing Model

0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.