hasMany(CustomerAccountTypeDocument::class,'account_type_id'); } public function children(){ return $this->hasMany(CustomerAccountType::class,'parent_id'); } }