diff --git a/app/Models/Ad_employer.php b/app/Models/Ad_employer.php index 6c7de72..da5db3e 100644 --- a/app/Models/Ad_employer.php +++ b/app/Models/Ad_employer.php @@ -59,7 +59,6 @@ class Ad_employer extends Model return $this->hasMany(Category::class, 'id'); } - public function scopeActive($query) { return $query->where('is_remove', '=', '0'); } diff --git a/app/Models/infobloks.php b/app/Models/infobloks.php index fd768aa..8444041 100644 --- a/app/Models/infobloks.php +++ b/app/Models/infobloks.php @@ -18,4 +18,12 @@ class infobloks extends Model public function ScopeActive($query) { return $query->where('is_remove', '=', '0'); } + + /* + * Связь модели Инфоблоки (Infobloks) с моделью Доп.информация (dop_info) + один-ко-многим + */ + public function model_dop_info() { + return $this->hasMany(dop_info::class, 'infoblok_id'); + } } diff --git a/resources/views/worker.blade.php b/resources/views/worker.blade.php index 1fa7580..dc37b8f 100644 --- a/resources/views/worker.blade.php +++ b/resources/views/worker.blade.php @@ -235,6 +235,12 @@