|
|
@@ -22,13 +22,6 @@ class Article extends Model
|
|
|
{
|
|
|
return $this->belongsTo(Category::class, 'catid', 'id');
|
|
|
}
|
|
|
- /**
|
|
|
- * 定义与分类的多对一关系
|
|
|
- */
|
|
|
- public function category()
|
|
|
- {
|
|
|
- return $this->belongsTo(Category::class, 'catid', 'id');
|
|
|
- }
|
|
|
/**
|
|
|
* 定义与分类的多对一关系
|
|
|
*/
|