belongsTo(Room::class, 'room_id', 'room_id'); } protected function getBrokerageAttribute($value) { return floatval($value); } protected function getScoreAttribute($value) { return floatval($value); } protected function getRealScoreAttribute($value) { return floatval($value); } protected function getScreenshotAttribute($value) { return Util::ensureUrl($value); } protected function setScreenshotAttribute($value) { $this->attributes['screenshot'] = Util::replacePartInUrl($value); } }