Laravel this is not only a practical framework, it is also a programming style
For example in model Post, I have such relation:
public function voters() { return $this->morphMany(Voter::class, 'entity'); }
Can I get attributes and fields of post entity from which I get voters?
Aucun commentaire:
Enregistrer un commentaire