Answer the question
In order to leave comments, you need to log in
How to write Relationships correctly?
I have three tables, I need to link them together, but I don't know how to do it correctly. User
tables
type = subscription
and where type = car
. return $this->hasManyThrough(
'App\Car',
'App\Purchase',
'id',
'id',
'id',
'id'
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question