Team.php 367 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: zilongs
  5. * Date: 20-10-4
  6. * Time: 下午10:09
  7. */
  8. namespace App\Models;
  9. class Team extends BaseModel
  10. {
  11. public function docter()
  12. {
  13. return $this->belongsToMany(Docter::class, 'team_docters');
  14. }
  15. public function DocterOrganization(){
  16. return $this->belongsTo(DocterOrganization::class);
  17. }
  18. }