浏览代码

更新 'app/Models/DocterTimes.php'

修改
houzi 4 年之前
父节点
当前提交
370cb2ba14
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/Models/DocterTimes.php

+ 3 - 0
app/Models/DocterTimes.php

xqd
@@ -10,5 +10,8 @@ namespace App\Models;
 
 class DocterTimes extends BaseModel
 {
+  	public function docter(){
+        return $this->hasOne(Docter::class,'id','docter_id');
+    }
 
 }