N
N
NubasLol2019-02-04 13:32:44
Laravel
NubasLol, 2019-02-04 13:32:44

How to load relationship relationships, instead of the Laravel model relationship itself?

For example, there is a relation comments.votes . Is it possible to make it so that when $model->comments is called, it would actually be votes

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question