Skip to content

Configuration ​

Publish the config with php artisan vendor:publish --tag=activitylog-ui-config. It lands at config/activitylog-ui.php.

Keys ​

KeyDefaultDescription
enabledtrueMaster switch (env ACTIVITYLOG_UI_ENABLED). When off, no routes are registered.
route.prefixadmin/activity-logURL prefix (env ACTIVITYLOG_UI_PATH).
route.domainnullOptional domain (env ACTIVITYLOG_UI_DOMAIN).
route.middleware['web', 'auth']Middleware applied to all routes.
gateviewActivityLogUiGate checked when defined.
access.allowed_users[]User ids/emails allow-list (enforced when non-empty).
access.allowed_roles[]Role names allow-list (enforced when non-empty).
features.analyticstrueAnalytics dashboard + data endpoint.
features.timelinetrueTimeline view.
features.saved_viewstrueSaved views (needs the migration).
features.live_countsfalseBackground-refresh the statistics total.
features.apifalseRead-only JSON API.
per_page / per_page_options15 / [10,15,25,50,100]Pagination.
search_driverlikelike (portable) or fulltext (MySQL/MariaDB).
causer_display_attributes['name','full_name','username','email']First non-empty wins.
date_formatY-m-d H:i:sTimestamp display format.
show_statstrueStatistics cards.
analytics.cache_ttl3600Seconds to cache the analytics payload (0 = off).
analytics.range_days30Default window of the time chart.
live_counts.poll_interval15Seconds between live-count refreshes.
saved_views.max_per_user50Cap per user.
export.enabledtrueAllow exports.
export.limit10000Max rows per export.
export.formats['csv','json','xlsx','pdf']Formats offered in the UI.

Custom activity model / connection ​

The UI resolves the activity model through Spatie, so a custom model or database connection configured in config/activitylog.php (activity_model) is picked up automatically — including a custom table name.

Released under the MIT License.