]> _ Git - psq.git/commitdiff
Update DispatchMailgunEvent.php
authorLouis Jeckel <louis.jeckel@outlook.cm>
Mon, 7 Sep 2020 07:20:58 +0000 (09:20 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Mon, 7 Sep 2020 07:20:58 +0000 (09:20 +0200)
app/Events/DispatchMailgunEvent.php

index 80184deab7332e74ec744a88d7335a04fb523ee8..13523887847e4e1de49cea6aec1cf723d304550e 100644 (file)
@@ -38,7 +38,7 @@ class DispatchMailgunEvent implements ShouldBroadcast
     {
         $tags = Arr::get($webhookData, 'event-data.tags');
 
-
+        \Log::info('mailgun event');
 
         /** @todo check webhook key */
 
@@ -52,7 +52,7 @@ class DispatchMailgunEvent implements ShouldBroadcast
             'email_batch_id' => $this->batch_id
         ]);
 
-        $this->broadcast = in_array(env('APP_ENV'), $tags, true) &&
+        $this->broadcast = in_array(config('app.env'), $tags, true) &&
             ($event->wasRecentlyCreated);
 
         $event->touch();