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_ENABLEDtrueTurns logging on or off globally
WAYPOINT_CONNECTIONnullDatabase connection, defaults to the connection of your app
WAYPOINT_QUEUEnullQueue name to write activities asynchronously
WAYPOINT_RETENTION365Days 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
tableon a running system hides all existing activities. Rename the table in a migration instead.
Last updated: