mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
init crater
This commit is contained in:
16
routes/channels.php
Normal file
16
routes/channels.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Broadcast;
|
||||
use Laraspace\User;
|
||||
|
||||
Broadcast::channel('conversation.{cid}', function ($user,$cid) {
|
||||
return true; //(int) $user->conversation_id === (int) $cid
|
||||
});
|
||||
|
||||
Broadcast::channel('user.{uid}', function () {
|
||||
return true; //(int) $user->conversation_id === (int) $cid
|
||||
});
|
||||
|
||||
Broadcast::channel('company.{companyId}', function ($user, $companyId) {
|
||||
return ['id' => $user->id, 'name' => $user->name];
|
||||
});
|
||||
Reference in New Issue
Block a user