Audit logs for Laravel in one line
Know who changed which record, when, and from which value to which. Add one trait to your Eloquent models and Waypoint writes the audit trail for you.
use Waypoint\Auditable;
class Invoice extends Model
{
use Auditable;
}
$invoice->update(['status' => 'paid']);
$invoice->activities()->first()->changes; // ['status' => ['old' => 'open', 'new' => 'paid']]
Everything an audit log needs, nothing it doesn't
One trait per model
Creates, updates, deletes and restores are logged with their old and new values.
Knows the causer
Every activity stores the user who made the change, from any auth guard.
Custom events
Log logins, exports and approvals next to the model changes.
Queued writes
Write activities on a queue so your requests stay fast.
Pruning built in
Delete old activities on a schedule with a retention period per event.
Testable
Fake the audit log in your tests and assert exactly what was written.
1.2M
Installs on Packagist
3.4k
Stars on GitHub
11–13
Supported Laravel versions
0
Observers to write
Find your way around
Getting started
Install Waypoint and log your first changes in five minutes.
Guides
Custom events, pruning and testing step by step.
API reference
Every trait, method and Artisan command in detail.
Add an audit trail to your app today
Require Waypoint with Composer and follow the quickstart. It takes about five minutes.