Skip to content

Commit

Permalink
fix: database social in model channel
Browse files Browse the repository at this point in the history
  • Loading branch information
FredPeal committed Feb 14, 2024
1 parent e3f7059 commit e4393a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Domains/Social/Channels/Models/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function users(): BelongsToMany
{
$databaseSocial = config('database.connections.social.database', 'social');

return $this->belongsToMany(Users::class, 'channel_users', 'channel_id', 'users_id')
return $this->belongsToMany(Users::class, $databaseSocial . '.channel_users', 'channel_id', 'users_id')
->withTimestamps()
->withPivot('roles_id');
}
Expand Down

0 comments on commit e4393a7

Please sign in to comment.