Merge remote-tracking branch 'origin/staging' into origin/production

This commit is contained in:
Linksehat Staging Server
2024-02-07 10:09:28 +07:00
13 changed files with 144 additions and 25 deletions

View File

@@ -15,6 +15,7 @@ class RequestDailyMonitoring extends Model
protected $fillable = [
'request_log_id',
'subject',
'submission_date',
'body_temperature',
'respiration_rate',
'sistole',

View File

@@ -20,6 +20,11 @@ class RequestLogDailyMonitoring extends Model
return $this->hasMany(RequestLogMedicalPlan::class);
}
public function files()
{
return $this->morphMany(File::class, 'fileable');
}
/* -------------------------------------------------------------------------- */
protected function code(): Attribute
@@ -28,4 +33,6 @@ class RequestLogDailyMonitoring extends Model
get: fn ($value, $attributes) => 'RE-' . str_pad($attributes['id'], 3, '0', STR_PAD_LEFT),
);
}
}