Open erick-innosonian opened 3 years ago
Try to change this:
Route::post('/custom/broadcasting/auth', function (\Illuminate\Http\Request $request) {
Log::debug('custom auth');
$user = User::where('id', 1)->first();
return [$user->name];
});
To this:
Route::post('/custom/broadcasting/auth', function (\Illuminate\Http\Request $request) {
Log::debug('custom auth');
$user = User::where('id', 1)->first();
return ['channel_data' => ['id' => $user->id, 'user_id' => $user->id]];
});
Describe the bug I can't get member data when using presence channel.
Versions
composer.json
package.json
Server side
.env
laravel-echo-server.json
web.php
MyEvent.php
config/database.php
client side
bootstrap.js
client.vue
console debug
If I try with private and public channel, It works. But If I try with Presence channel, always not working. laravel echo server said
And wired thing is that I can listen an event. Could you let me know the problem?