このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
2018-01-24 00:25:04 +09:00
|
|
|
<?php
|
|
|
|
|
2020-05-26 09:54:01 +09:00
|
|
|
use Illuminate\Support\Facades\Broadcast;
|
|
|
|
|
2018-01-24 00:25:04 +09:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Broadcast Channels
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here you may register all of the event broadcasting channels that your
|
|
|
|
| application supports. The given channel authorization callbacks are
|
|
|
|
| used to check if an authenticated user can listen to the channel.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
Broadcast::channel('App.User.{id}', function ($user, $id) {
|
|
|
|
return (int) $user->id === (int) $id;
|
|
|
|
});
|