Refactor notification channels based on cloud environment
This commit is contained in:
parent
f70a9c6974
commit
9fa71f847f
1 changed files with 5 additions and 3 deletions
|
|
@ -44,9 +44,11 @@ public function __construct(Application $application, string $deployment_uuid, A
|
||||||
public function via(object $notifiable): array
|
public function via(object $notifiable): array
|
||||||
{
|
{
|
||||||
$channels = setNotificationChannels($notifiable, 'deployments');
|
$channels = setNotificationChannels($notifiable, 'deployments');
|
||||||
$channels = array_filter($channels, function ($channel) {
|
if (isCloud()) {
|
||||||
return $channel !== 'App\Notifications\Channels\EmailChannel';
|
$channels = array_filter($channels, function ($channel) {
|
||||||
});
|
return $channel !== 'App\Notifications\Channels\EmailChannel';
|
||||||
|
});
|
||||||
|
}
|
||||||
return $channels;
|
return $channels;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue