Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
musonza authored Dec 14, 2018
1 parent 23a619e commit 6e3e175
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,24 @@ This will publish database migrations and a configuration file `musonza_chat.php
## Configuration

```php
[
'user_model' => 'App\User',
return [
'user_model' => 'App\User',

/**
/*
* This will allow you to broadcast an event when a message is sent
* Example:
* Channel: private-mc-chat-conversation.2,
* Event: Musonza\Chat\Messages\MessageWasSent
* Channel: mc-chat-conversation.2,
* Event: Musonza\Chat\Eventing\MessageWasSent
*/
'broadcasts' => false,

/**
* The event to fire when a message is sent
* See Musonza\Chat\Eventing\MessageWasSent if you want to customize.
*/
'broadcasts' => false,
'sent_message_event' => 'Musonza\Chat\Eventing\MessageWasSent',
];

```

Run the migrations:
Expand Down

0 comments on commit 6e3e175

Please sign in to comment.