Skip to the content.

Laravel Approvals

Approval workflows for Eloquent models: capture a pending change as a Modification, gate it behind N approvers/disapprovers, and apply the diff once approved.

Modification is the single source of change history and approval flow for a model. A direct update is recorded as an applied, informational Modification; an update that requires authorization is captured as a pending one and applied only once it clears its approval threshold.

Contents

Requirements

Installation

composer require reynotech/laravel-approvals
php artisan vendor:publish --tag=approvals-migrations
php artisan migrate

Optionally publish the config:

php artisan vendor:publish --tag=approvals-config

Source on GitHub: reynotech/laravel-approvals