Open 4n70w4 opened 4 years ago
@package jstoone/nova-mailman
Index: src/DeliverToInbox.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/DeliverToInbox.php (date 1576755583296)
+++ src/DeliverToInbox.php (date 1576755583296)
@@ -4,6 +4,7 @@
use Illuminate\Contracts\Filesystem\Filesystem;
use Illuminate\Mail\Events\MessageSent;
+use Illuminate\Support\Arr;
use Swift_Message;
class DeliverToInbox
@@ -88,7 +89,7 @@
{
return json_encode([
'id' => $this->identifier,
- 'recipient' => array_first(array_keys($message->getTo())),
+ 'recipient' => Arr::first(array_keys($message->getTo())),
'subject' => $message->getSubject(),
'sent_at' => (string) now(),
'link' => route('nova-mailman.show', $this->identifier),