fix test errors
API CI/CD / Validate (composer + pint) (push) Successful in 2m47s
API CI/CD / Test (PHPUnit) (push) Failing after 3m8s
API CI/CD / Build frontend assets (push) Failing after 5m22s
API CI/CD / Security audit (push) Failing after 34s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
API CI/CD / Validate (composer + pint) (push) Successful in 2m47s
API CI/CD / Test (PHPUnit) (push) Failing after 3m8s
API CI/CD / Build frontend assets (push) Failing after 5m22s
API CI/CD / Security audit (push) Failing after 34s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
This commit is contained in:
@@ -53,6 +53,16 @@ class PromotionReminderLog extends BaseModel
|
||||
'sent_at' => 'datetime',
|
||||
];
|
||||
|
||||
public function setSubjectAttribute(?string $value): void
|
||||
{
|
||||
$this->attributes['subject'] = $value !== null ? strip_tags($value) : null;
|
||||
}
|
||||
|
||||
public function setMessageAttribute(?string $value): void
|
||||
{
|
||||
$this->attributes['message'] = $value !== null ? strip_tags($value) : null;
|
||||
}
|
||||
|
||||
public function promotion(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(StudentPromotionRecord::class, 'promotion_id', 'promotion_id');
|
||||
|
||||
Reference in New Issue
Block a user