belongsToMany(Privilege::class, 'group_privileges'); } /** * @return BelongsToMany */ public function users(): BelongsToMany { return $this->belongsToMany(User::class, 'users_groups'); } }