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?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2d56232
via IFTTT
Aucun commentaire:
Enregistrer un commentaire