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
@@ -52,4 +52,10 @@ class FormUpCountry extends Model
{
return $this->belongsTo('App\Models\Rayon');
}
public function attachments()
{
return $this->hasMany(\App\Models\AttachmentForm::class, 'form_id')
->where('table_name', \App\Enums\AttachmentTableName::FORM_UP_COUNTRY);
}
}