fix(core): harden settlement and wallet integration
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Player;
|
||||
use Illuminate\Support\Facades\Broadcast;
|
||||
|
||||
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
|
||||
return (int) $user->id === (int) $id;
|
||||
});
|
||||
Broadcast::channel(
|
||||
'player.{playerId}',
|
||||
static fn (Player $player, string $playerId): bool => ctype_digit($playerId)
|
||||
&& (string) $player->getKey() === $playerId,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user