Getting started

Configure Waypoint

All options live in config/waypoint.php. Most of them can be set with environment variables, so you rarely need to touch the file.

Environment variables

Variable
Default
Description
WAYPOINT_ENABLED
true
Turns logging on or off globally
WAYPOINT_CONNECTION
null
Database connection, defaults to the connection of your app
WAYPOINT_QUEUE
null
Queue name to write activities asynchronously
WAYPOINT_RETENTION
365
Days to keep activities when pruning

Resolve the causer

By default, the causer is the user of the default auth guard. Change it if you log changes made through an API or admin guard:

php
// config/waypoint.php
return [
    'causer' => fn () => auth('admin')->user() ?? auth()->user(),
    'table' => 'activities',
];

Warning

Changing table on a running system hides all existing activities. Rename the table in a migration instead.

Last updated: