Serviceapplys.php 592 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Serviceapplys extends Model
  5. {
  6. //
  7. protected $table = 'service_applys';
  8. public function docter(){
  9. return $this->belongsTo(Docter::class);
  10. }
  11. public function ondocter()
  12. {
  13. return $this->hasOne(Docter::class,'id','docter_id');
  14. }
  15. // private static $_post_type =[
  16. // 1 => '图文',
  17. // 2 => '电话',
  18. // 3 => '问诊'
  19. // ];
  20. // private static $_post_status =[
  21. // 1 => '审核',
  22. // 2 => '通过',
  23. // 3 => '未通过'
  24. // ];
  25. }