Skip to content

ProcessHistory ​

File: src/Entities/ProcessHistory.php
Namespace: Unusualify\Modularous\Entities
Extends: Illuminate\Database\Eloquent\Model

Audit trail for process status changes. Each record captures who changed the status, the new status, and an optional reason.

Fillable Attributes ​

AttributeTypeDescription
process_idintParent process
statusProcessStatusThe status recorded (enum cast)
reasonstringOptional reason for the change
user_idintUser who made the change

Boot Events ​

EventAction
createdDispatches ProcessHistoryCreated
updatedDispatches ProcessHistoryUpdated

Relationships ​

process(): BelongsTo ​

The parent Process this history entry belongs to.

user(): BelongsTo ​

The User who triggered this status change.

Table ​

Resolved from modularous.tables.process_histories, defaults to m_process_histories.

  • Process — the parent workflow instance