Remove meeting templates and show Events programme on Meet rooms.
Deploy Ladill Meet / deploy (push) Successful in 42s

Templates duplicated create-form settings without edit/delete flows; drop the feature and table. Conference and webinar pages render synced programme snapshots and link back to Ladill Events.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-01 22:31:03 +00:00
co-authored by Cursor
parent c108514b27
commit aed7094fed
25 changed files with 152 additions and 336 deletions
-5
View File
@@ -37,11 +37,6 @@ class Organization extends Model
return $this->hasMany(Member::class, 'organization_id');
}
public function templates(): HasMany
{
return $this->hasMany(Template::class, 'organization_id');
}
public function securitySetting(string $key, mixed $default = null): mixed
{
return data_get($this->security_policy, $key, data_get(config('meet.security_defaults'), $key, $default));
+1 -6
View File
@@ -19,7 +19,7 @@ class Room extends Model
'uuid', 'owner_ref', 'organization_id', 'branch_id', 'host_user_ref',
'title', 'description', 'type', 'status', 'slug', 'scheduled_at',
'duration_minutes', 'timezone', 'passcode', 'settings', 'source', 'calendar_event_id',
'template_id', 'recurring_series_id', 'recurrence_rule', 'recurrence_interval', 'recurrence_until',
'recurring_series_id', 'recurrence_rule', 'recurrence_interval', 'recurrence_until',
];
protected function casts(): array
@@ -144,11 +144,6 @@ class Room extends Model
return $this->type === 'town_hall';
}
public function template(): BelongsTo
{
return $this->belongsTo(Template::class, 'template_id');
}
public function isRecurring(): bool
{
return filled($this->recurrence_rule);
-50
View File
@@ -1,50 +0,0 @@
<?php
namespace App\Models;
use App\Models\Concerns\BelongsToOwner;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Str;
class Template extends Model
{
use BelongsToOwner, SoftDeletes;
protected $table = 'meet_templates';
protected $fillable = [
'uuid', 'owner_ref', 'organization_id', 'name', 'description',
'duration_minutes', 'settings', 'is_default',
];
protected function casts(): array
{
return ['settings' => 'array', 'is_default' => 'boolean'];
}
protected static function booted(): void
{
static::creating(function (Template $template) {
if (empty($template->uuid)) {
$template->uuid = (string) Str::uuid();
}
});
}
public function getRouteKeyName(): string
{
return 'uuid';
}
public function organization(): BelongsTo
{
return $this->belongsTo(Organization::class, 'organization_id');
}
public function mergedSettings(): array
{
return array_merge(config('meet.default_settings'), $this->settings ?? []);
}
}