enhanced services attachment

This commit is contained in:
Fiqh Pratama
2025-10-13 10:55:21 +07:00
parent 65d176e6b2
commit dd5dbcab8f
9 changed files with 184 additions and 0 deletions
+6
View File
@@ -40,4 +40,10 @@ class FormMeetingSeminar extends Model
{
return $this->belongsTo(Admin::class, 'user_id');
}
public function attachments()
{
return $this->hasMany(\App\Models\AttachmentForm::class, 'form_id')
->where('table_name', \App\Enums\AttachmentTableName::FORM_MEETING_SEMINAR);
}
}