WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 565eb43

Browse files
committed
updated example with latest $thread->latestMessage change
1 parent 157b271 commit 565eb43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cmgmyr/Messenger/examples/views/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<?php $class = $thread->isUnread($currentUserId) ? 'alert-info' : ''; ?>
1212
<div class="media alert {{$class}}">
1313
<h4 class="media-heading">{{link_to('messages/' . $thread->id, $thread->subject)}}</h4>
14-
<p>{{$thread->latestMessage()->body}}</p>
14+
<p>{{$thread->latestMessage->body}}</p>
1515
<p><small><strong>Participants:</strong> {{ $thread->participantsString(Auth::id()) }}</small></p>
1616
</div>
1717
@endforeach

0 commit comments

Comments
 (0)