Skip to content

Commit

Permalink
singleton pattern added
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed Sep 19, 2024
1 parent ee81e7b commit df037ca
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 **//
Expand Down

0 comments on commit df037ca

Please sign in to comment.