VY
Axios запрос есть на странице, но почему дебагбар показывает 0 запросов?
Size: a a a
VY
️V
VY
И
️V
И
VY
VY
$members[] = Payment::whereIn('user_id', $structure->pluck('descendant')) ->count();
VY
VY
️V
VY
public function invites()
{
$members = [];
$structure = $this->user->getDescendants();
$members[] = $structure->count();
$members[] = Payment::whereIn('user_id', $structure->pluck('descendant'))
->count();
$activesCount = 0;
$structure->each(
function ($item, $key) use (&$activesCount) {
if ($item->hasChildren()) {
$activesCount++;
}
}
);
$members[] = $activesCount;
return $members;
}
$structure = $this->user->getDescendants();
VY
VP
AP
VY
AP
СБ
П