belongsTo(SmartScreenCate::class, 'cate1','id'); } //二级分类 public function cate2() { return $this->belongsTo(SmartScreenCate::class, 'cate2','id'); } //三级分类 public function cate3() { return $this->belongsTo(SmartScreenCate::class, 'cate3','id'); } //上传人 public function employee() { return $this->belongsTo(Employee::class, 'employee_id','id'); } // public function designer() { return $this->belongsTo(Employee::class, 'designer_id','id'); } //asd public function community() { return $this->belongsTo(SmartScreenCate::class, 'community_id','id'); } public function decostyle() { return $this->belongsTo(SmartScreenCate::class, 'decostyle_id','id'); } public function housetype() { return $this->belongsTo(SmartScreenCate::class, 'housetype_id','id'); } }