NB
public function groups()
{
return $this->hasMany(Group::class, 'client_id');
}
Size: a a a
NB
public function groups()
{
return $this->hasMany(Group::class, 'client_id');
}
ДК
public function groups()
{
return $this->hasMany(Group::class, 'client_id');
}
ДК
NB
NB
NB
NB
ДК
AD
NB
g
.id
, g
.name
, c
.email
, c
.full_name
, COUNT(c.id) as users_amount from groups
as g
left join users
as c
on g
.client_id
= c
.id
where groups
.client_id
= ? and groups
.client_id
is not null group by g
.id
, g
.name
order by g
.id
desc"ДК
g
.id
, g
.name
, c
.email
, c
.full_name
, COUNT(c.id) as users_amount from groups
as g
left join users
as c
on g
.client_id
= c
.id
where groups
.client_id
= ? and groups
.client_id
is not null group by g
.id
, g
.name
order by g
.id
desc"NB
NB
ДК
NB
NB
NB
NB
ДК
NB