I know that you can automatically retrieve relationships by putting the following in a model class:
protected $with = [
'users', 'scores'
];
But is it possible to do the same with "withCount"?
I tried this but it didn't work:
protected $withCount = [
'users'
];
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire