you can select what do u want to use in commentBy relationship;
...
..->with(['commentBy' => function ($q) {
$q->addSelect('a','b','c') //etc
}]);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community