feat: added laravel reverb and websocket, also emote throwing added

This commit is contained in:
2026-08-16 17:10:42 +02:00
parent 50e9fbd0b0
commit 6f47ed0674
30 changed files with 2244 additions and 34 deletions
+3
View File
@@ -0,0 +1,3 @@
<?php
// Room updates use public UUID channels and do not need authorization callbacks.
+3
View File
@@ -1,6 +1,7 @@
<?php
use App\Http\Controllers\RoomController;
use App\Http\Controllers\RoomEmoteController;
use App\Http\Controllers\RoomPlayerController;
use App\Http\Controllers\RoundController;
use App\Http\Controllers\VoteController;
@@ -28,6 +29,8 @@ Route::middleware('room.player')->group(function () {
Route::get('/rooms/{room}', [RoomController::class, 'show'])->name('room.show');
Route::post('/rooms/{room}/votes', [VoteController::class, 'store'])
->name('room.vote.store');
Route::post('/rooms/{room}/emotes/paper-ball', [RoomEmoteController::class, 'store'])
->name('room.emote.paper-ball.store');
Route::post('/rooms/{room}/reveal', [RoundController::class, 'reveal'])
->name('room.reveal');
Route::post('/rooms/{room}/reset', [RoundController::class, 'reset'])