allow anyone controll room option

This commit is contained in:
2026-08-27 15:41:21 +02:00
parent b2c1d67283
commit 72152e2d45
16 changed files with 328 additions and 11 deletions
+7
View File
@@ -19,6 +19,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property int $current_round
* @property CarbonImmutable|null $revealed_at
* @property int $state_version
* @property bool $allow_participant_controls
* @property CarbonImmutable|null $last_activity_at
* @property CarbonImmutable|null $closed_at
* @property CarbonImmutable|null $deleted_at
@@ -35,6 +36,7 @@ class Room extends Model
'deck_config',
'revealed_at',
'state_version',
'allow_participant_controls',
'last_activity_at',
'closed_at',
];
@@ -44,6 +46,7 @@ class Room extends Model
return [
'current_round' => 'integer',
'state_version' => 'integer',
'allow_participant_controls' => 'boolean',
'revealed_at' => 'immutable_datetime',
'last_activity_at' => 'immutable_datetime',
'closed_at' => 'immutable_datetime',
@@ -51,6 +54,10 @@ class Room extends Model
];
}
protected $attributes = [
'allow_participant_controls' => false,
];
protected static function booted(): void
{
static::creating(function (Room $room) {