From 345c3d51cea12a7c6e78efe6ba352486320cafdf Mon Sep 17 00:00:00 2001 From: Benjamin Takats Date: Thu, 19 Jan 2023 18:24:56 +0100 Subject: [PATCH] x-trap --- app/Http/Livewire/Chat/HighscoreChat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Livewire/Chat/HighscoreChat.php b/app/Http/Livewire/Chat/HighscoreChat.php index df2ba118..4b9f2441 100644 --- a/app/Http/Livewire/Chat/HighscoreChat.php +++ b/app/Http/Livewire/Chat/HighscoreChat.php @@ -49,7 +49,7 @@ class HighscoreChat extends Component $newMessages = collect($this->messages) ->push([ 'fromId' => auth()->id(), - 'fromName' => str(auth()->user()->name)->initials(), + 'fromName' => str(auth()->user()->name)->limit(2), 'userImg' => str(auth()->user()->profile_photo_url)->replace('background=EBF4FF', 'background=F7931A'), 'message' => $this->myNewMessage, 'time' => now()->asDateTime(),