'array', ]; public function student(): BelongsTo { return $this->belongsTo(Student::class); } public function event(): BelongsTo { return $this->belongsTo(Event::class); } public function entries() { return Entry::whereIn('id', $this->entries)->with('student')->with('audition')->get(); } // Find a doubler based on both keys public static function findDoubler($studentId, $eventId) { return static::where('student_id', $studentId) ->where('event_id', $eventId) ->first(); } }