Refactor setNotificationChannels method in DeploymentSuccess.php
This commit is contained in:
parent
70e1ec2cd2
commit
17e81ab6bd
1 changed files with 1 additions and 8 deletions
|
|
@ -43,15 +43,8 @@ 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');
|
return setNotificationChannels($notifiable, 'deployments');
|
||||||
if (isCloud()) {
|
|
||||||
$channels = array_filter($channels, function ($channel) {
|
|
||||||
return $channel !== 'App\Notifications\Channels\EmailChannel';
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return $channels;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue