diff --git a/app/Models/Categories.php b/app/Models/Categories.php index ae376611..c2e666cb 100755 --- a/app/Models/Categories.php +++ b/app/Models/Categories.php @@ -21,6 +21,10 @@ class Categories extends Model public function aArticles(): HasMany { return $this->hasMany(Articles::class, 'iCategoryId', 'id'); } + + public function oArticles(): HasMany { + return $this->hasMany(Articles::class, 'iCategoryId', 'id'); + } public function aChildren() {