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
+3 -3
View File
@@ -5,12 +5,12 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
use phpDocumentor\Reflection\Types\Boolean;
class Player extends Model
{
protected $fillable = [
'room_id',
'room_id',
'user_id',
'name',
'is_moderator',
'last_seen_at',
@@ -58,7 +58,7 @@ class Player extends Model
return $this->is_moderator;
}
public function markAsSeen(): void
public function markAsSeen(): void
{
$this->update([
'last_seen_at' => now(),