Approver
interface Approver (View source)
Implemented by models that use the ApprovesChanges concern: models that can cast an approval/disapproval on a pending Modification.
Methods
bool
bool
MorphMany
approvals()
The approvals cast by this model.
MorphMany
disapprovals()
The disapprovals cast by this model.
Details
bool
approve(Modification $modification, string|null $reason = null)
Vote to approve a modification.
bool
disapprove(Modification $modification, string|null $reason = null)
Vote to reject a modification.
MorphMany
approvals()
The approvals cast by this model.
MorphMany
disapprovals()
The disapprovals cast by this model.