I have a model called CallbackRequest the model has a relationship with Loan model and that is the only relationship for CallbackRequest model. CallbackModel: Now Loan model itself has a relationship with a third model called Applicant. Loan Model: My point: When I load CallbackRequest I eagerload loan model with it, all fine! But now I am wondering if there
Tag: relationships
One-To-Many Relationships in laravel eloquent
Good morning, I am having a little trouble with model relationships in Eloquent, I need to link articles and images for those articles with an intermediate table. In the intermediate table I’d like to add the id’s of both article and image, and I would like to retrieve all the images belonging to an article, what would be the best
Laravel merge relationships
Is there a way to merge 2 relationships in laravel? this is the way it’s setup now, but Is there a way I could return both merged? public function CompetitionsHome() { return $this->HasMany(…