Skip to content

Configuration ​

All options live in config/auditor.php (published by auditor:install). The most common ones can be set from .env:

VariableDefaultPurpose
AUDITOR_ENABLEDtrueMaster switch. The dashboard stays reachable when off.
AUDITOR_DRIVERdatabasedatabase, log, null or a custom driver.
AUDITOR_DB_CONNECTIONdefaultKeep the audit trail on its own connection.
AUDITOR_QUEUEfalsePersist entries through a queued job.
AUDITOR_KEEP_DAYS90Retention used by auditor:prune.
AUDITOR_INTEGRITY / AUDITOR_INTEGRITY_KEYoffHash chain.
AUDITOR_PATH / AUDITOR_DOMAINauditorWhere the dashboard lives.
AUDITOR_THEMEsystemInitial dashboard theme.
AUDITOR_THROWfalseThrow recording errors (use true in tests).

The full file with every option and its default is in the configuration reference.

Change morph_key_type before migrating

storage.database.morph_key_type (string, int, uuid or ulid) is read by the migration to create the user_id / auditable_id columns. The default string works with every key type.

Released under the MIT License.