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); } }