feat: some fixes to the ui, imlemented user and guest user, ans used the dahboard

This commit is contained in:
2026-08-16 16:24:25 +02:00
parent 4639baa9ae
commit 50e9fbd0b0
37 changed files with 1657 additions and 194 deletions
+12
View File
@@ -4,7 +4,17 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Support\Carbon;
/**
* @property int $id
* @property int $player_id
* @property string $room_id
* @property int $round
* @property string $value
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
*/
class Vote extends Model
{
protected $fillable = [
@@ -21,11 +31,13 @@ class Vote extends Model
];
}
/** @return BelongsTo<Room, $this> */
public function room(): BelongsTo
{
return $this->belongsTo(Room::class);
}
/** @return BelongsTo<Player, $this> */
public function player(): BelongsTo
{
return $this->belongsTo(Player::class);