I have 3 models
A: id
B: a_id
, c_id
C: id
and the model class
class A extends Model
{
public function cs()
{
return ??
}
}
How can I use Eloquent to retrieve all C models related to A using the intermediate model B?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire