From 6570421142b5140ca51bba9d367806e7a54879b0 Mon Sep 17 00:00:00 2001 From: hellcat Date: Mon, 30 Mar 2026 16:39:44 +0800 Subject: [PATCH] no message --- app/Models/Categories.php | 4 ++++ 1 file changed, 4 insertions(+) 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() {