(Update)[Chat 2.0] User group colors and effects

Also links to users profile.
This commit is contained in:
poppabear8883
2018-05-04 09:57:41 -04:00
parent bb5f506927
commit 06c65fd060
5 changed files with 456 additions and 396 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ class ChatController extends Controller
/* ROOMS */
public function rooms()
{
$rooms = Chatroom::with(['messages.user'])->get();
$rooms = Chatroom::with(['messages.user.group'])->get();
return ChatRoomResource::collection($rooms);
}