clear completed TODO

This commit is contained in:
Matt Young 2024-06-27 23:55:58 -05:00
parent 01fc9fc901
commit 568109587c
1 changed files with 3 additions and 3 deletions

View File

@ -12,8 +12,8 @@ use Illuminate\Database\Eloquent\Relations\HasManyThrough;
class Room extends Model
{
use HasFactory;
protected $guarded = [];
//TODO can a user add rooms?
public function auditions(): HasMany
{
@ -34,12 +34,12 @@ class Room extends Model
public function users(): BelongsToMany
{
return $this->belongsToMany(User::class,'room_user');
return $this->belongsToMany(User::class, 'room_user');
}
public function judges(): BelongsToMany
{
return $this->belongsToMany(User::class,'room_user','room_id','user_id');
return $this->belongsToMany(User::class, 'room_user', 'room_id', 'user_id');
}
public function addJudge($userId): void