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
+15
View File
@@ -5,7 +5,19 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Support\Carbon;
/**
* @property int $id
* @property string $room_id
* @property int|null $user_id
* @property string $name
* @property bool $is_moderator
* @property Carbon|null $last_seen_at
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property-read Room $room
*/
class Player extends Model
{
protected $fillable = [
@@ -24,16 +36,19 @@ class Player extends Model
];
}
/** @return BelongsTo<Room, $this> */
public function room(): BelongsTo
{
return $this->belongsTo(Room::class);
}
/** @return HasMany<Vote, $this> */
public function votes(): HasMany
{
return $this->hasMany(Vote::class);
}
/** @return BelongsTo<User, $this> */
public function user(): BelongsTo
{
return $this->belongsTo(User::class);