build the backend structure and the fe for the Game

This commit is contained in:
2026-08-15 22:37:53 +02:00
parent c5fd3f9d79
commit 4340ca9e12
37 changed files with 1611 additions and 56 deletions
+6 -5
View File
@@ -11,22 +11,23 @@ class Vote extends Model
'round',
'value',
'room_id',
'player_id'
'player_id',
];
protected function casts(): array
{
return [
'round' => 'integer',
'round' => 'integer',
];
}
public function room(): BelongsTo {
public function room(): BelongsTo
{
return $this->belongsTo(Room::class);
}
public function player(): BelongsTo {
public function player(): BelongsTo
{
return $this->belongsTo(Player::class);
}
}