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