(Update)[Chat 2.0] Max Message Limits

Now you are able to configure the max messages allowed in each room.
This commit is contained in:
Poppabear
2018-05-08 22:24:20 -04:00
parent 0fd8f5a9ef
commit 40ef5f6738
5 changed files with 48 additions and 10 deletions

View File

@@ -40,6 +40,13 @@ class ChatController extends Controller
return ChatRoomResource::collection($this->chat->rooms());
}
public function roomLimits($room_id)
{
return response([
'max_messages' => config('chat.message_limit')
], 200);
}
/* MESSAGES */
public function createMessage(Request $request)
{