소스 검색

更新 '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');
+    }
 
 }