<?php namespace app\model; use think\Model; class SmartScreenProjectCate extends Model { public function project(){ return $this->hasMany(SmartScreenProject::class, 'cate_id', 'id'); } }