belongsTo(Round::class); } public function participant() { return $this->belongsTo(Participant::class); } public function getHasFinishedAttribute() { return $this->time > 0; } protected $appends = [ 'has_finished', ]; protected $fillable = [ 'round_id', 'time', 'user_id', ]; }