🆙 More fixes 🆙

This commit is contained in:
Remco
2026-01-19 20:59:00 +01:00
parent f2ba190a47
commit 6c42ec0edd
10 changed files with 33 additions and 8 deletions
+6
View File
@@ -12,11 +12,17 @@ class Room extends Model
{
protected $guarded = ['id'];
/**
* @return HasOne<Guild, $this>
*/
public function guild(): HasOne
{
return $this->hasOne(Guild::class, 'room_id');
}
/**
* @return BelongsTo<User, $this>
*/
public function owner(): BelongsTo
{
return $this->belongsTo(User::class, 'owner_id', 'id');