1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- class Serviceapplys extends Model
- {
- //
- protected $table = 'service_applys';
- public function docter(){
- return $this->belongsTo(Docter::class);
- }
- public function ondocter()
- {
- return $this->hasOne(Docter::class,'id','docter_id');
- }
- public function docterorganization()
- {
- return $this->hasMany(DocterOrganization::class,'docter_id','docter_id');
- }
- // private static $_post_type =[
- // 1 => '图文',
- // 2 => '电话',
- // 3 => '问诊'
- // ];
- // private static $_post_status =[
- // 1 => '审核',
- // 2 => '通过',
- // 3 => '未通过'
- // ];
- }
|