enhanced services attachment
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user