Can anyone please explain this method? what is other key refer to?
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
Sign in to participate in this thread!