Merge branch 'develop'
This commit is contained in:
@@ -273,4 +273,14 @@ class MessageNotificationsService
|
||||
{
|
||||
return User::where('status', 1)->pluck('id')->toArray();
|
||||
}
|
||||
|
||||
|
||||
public function getUserEmailsById(array $con = []): array
|
||||
{
|
||||
$user = User::where('status', 1);
|
||||
if (count($con) > 0) {
|
||||
return $user->whereIn('id', $con)->where('email', '!=', '')->pluck('email')->toArray();
|
||||
}
|
||||
return $user->where('email', '!=', '')->pluck('email')->toArray();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user