*/ protected $fillable = [ 'doctor_id', 'doctor_name', 'doctor_title', 'doctor_specialty', 'dept_id', 'avatar', 'introduction', 'sort', 'is_expert', 'is_enable', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'id' => 'integer', 'sort' => 'integer', 'is_expert' => 'integer', 'is_enable' => 'integer', ]; /** * 科室 * @return BelongsTo */ public function department(): BelongsTo { return $this->belongsTo(Department::class, 'dept_id', 'dept_id'); } }