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

Why not a many to many relationship ? Requests seems like a perfect pivot table :)

Last updated 2 years ago.
0

pmall said:

Why not a many to many relationship ? Requests seems like a perfect pivot table :)

Oh, that might just work indeed, will try that.

Last updated 2 years ago.
0

A many to many relation? Why? One to Many and Many to One seems to be enough...

A Request can have 1 User and a User can have many Requests A Request can have 1 Listing and a Listing can have many Requests.

I dont see a Many to Many relation anywhere. This adds a database table for nothing. If you do a "work around" you get more DB tables and you want to keep it clean :)

Last updated 2 years ago.
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.