*/ protected $fillable = [ 'relate_order_id', 'relate_patient_id', 'scene', 'report_data', 'number', 'status', 'report_at', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'id' => 'integer', 'number' => 'integer', 'status' => 'integer', 'report_at' => 'datetime', ]; /** * Relationships Order. */ public function order(): BelongsTo { return $this->belongsTo(Order::class, 'relate_order_id'); } /** * Relationships Patient. */ public function patient(): BelongsTo { return $this->belongsTo(Patient::class, 'relate_patient_id'); } }