From df037ca8ab750635283b10040b7b38c3b96fbf6b Mon Sep 17 00:00:00 2001 From: Mohammad Hafijul Islam Date: Fri, 20 Sep 2024 02:14:32 +0600 Subject: [PATCH] singleton pattern added --- src/Chat.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Chat.php b/src/Chat.php index 150678b..334d65b 100644 --- a/src/Chat.php +++ b/src/Chat.php @@ -11,25 +11,25 @@ class Chat /** * @return ChatGroupService */ - public function chatGroup() - { - return app(ChatGroupService::class); + public function chatGroup($filters = null) +{ + return \singleton(ChatGroupService::class, $filters); } /** * @return ChatParticipantService */ - public function chatParticipant() - { - return app(ChatParticipantService::class); + public function chatParticipant($filters = null) +{ + return \singleton(ChatParticipantService::class, $filters); } /** * @return ChatMessageService */ - public function chatMessage() - { - return app(ChatMessageService::class); + public function chatMessage($filters = null) +{ + return \singleton(ChatMessageService::class, $filters); } //** Crud Service Method Point Do not Remove **//