123456789101112131415161718192021 |
- <?php
- /**
- * Created by PhpStorm.
- * User: zilongs
- * Date: 20-9-29
- * Time: 下午2:35
- */
- namespace App\Models;
- class Organization extends BaseModel
- {
- public function docter()
- {
- return $this->belongsToMany(Docter::class);
- }
- public function offices(){
- return $this->hasMany(Office::class,'org_id','id');
- }
- }
|