Login Audit
Package docs status
Section titled “Package docs status”This page is generated from public package documentation in capell-4/packages and the package manifest checked into the source repository.
| Field | Value |
|---|---|
| Composer package | capell-app/login-audit |
| Package slug | login-audit |
| Product group | Capell Operations |
| Tier | premium |
| Bundle | operations |
| Runtime contexts | admin |
| Capell version | ^4.0 |
| Source repository | capell-app/packages |
| Source path | packages/login-audit |
| Docs source | packages/login-audit/docs |
| Manifest | capell.json |
What This Plugin Adds
Section titled “What This Plugin Adds”Login Audit is an Available, Schema-owning Capell package in the Capell Operations product group. It ships as capell-app/login-audit and extends these surfaces: admin.
Login Audit gives Capell operators a complete, immutable record of who accessed the admin and storefront, when, from which IP and device, and whether each attempt succeeded. A dedicated Filament resource, dashboard widget, and per-user access summary make it easy to spot unusual activity and respond to incidents, while configurable retention keeps the log lean and aligned with your data-protection policy. IP capture can be disabled or resolved through your CDN (Cloudflare and similar), and the audit log is read-only by design so records can’t be quietly altered. Built on the battle-tested Laravel authentication-log foundation and wired into Capell’s settings, permissions, and Diagnostics.
After install, admins get package-owned management or reporting surfaces inside Capell.
Status details:
- Status: Available
- Tier: premium
- Bundle: operations
- Composer package:
capell-app/login-audit - Namespace:
Capell\LoginAudit - Theme key: not applicable
Why It Matters
Section titled “Why It Matters”For developers: The package gives developers package-owned service providers, Actions, models, and Filament classes instead of pushing this behaviour into core or application code.
For teams: Tamper-proof access logging for Capell - track every login, failed attempt, logout, device, and session, with retention controls and an admin audit trail built for security and compliance reviews.
Screens And Workflow
Section titled “Screens And Workflow”Screenshot contract: docs/screenshots.json.
- Authentication logs admin index (admin, required).
- Authentication log table filters (admin, required).
- Dashboard widget (admin, required).
- Authentication log settings screen (admin, required).
- User edit access summary (frontend, required).
- User authentication logs relation manager (frontend, required).
Technical Shape
Section titled “Technical Shape”- Service providers:
Capell\LoginAudit\Providers\LoginAuditServiceProvider,Capell\LoginAudit\Providers\AdminServiceProvider. - Config files:
packages/login-audit/config/login-audit.php. - Migrations:
packages/login-audit/database/migrations/2026_05_10_190857_01_create_login_audit_table.php. - Settings migrations:
packages/login-audit/database/settings/2026_05_10_190858_01_add_login_audit_settings.php,packages/login-audit/database/settings/2026_06_06_000001_add_login_audit_suspicious_detection_settings.php,packages/login-audit/database/settings/2026_06_06_000002_add_login_audit_alert_settings.php,packages/login-audit/database/settings/2026_06_06_000003_add_login_audit_geo_location_setting.php. - Settings classes:
LoginAuditSettings. - Models:
LoginAudit. - Filament classes:
LoginAuditAdminPanelExtender,LoginAuditResource,LoginAuditsTable,LoginAuditsRelationManager,LoginAuditDashboardSettingsContributor,LoginAuditSettingsSchema,LoginAuditsFilamentWidget. - Policies:
LoginAuditPolicy. - Listeners:
DetectSuspiciousLoginFromAuthEvent. - Actions:
ApplyLoginAuditSettingsAction,BuildLoginAuditsCsvAction,BuildLoginAuditsQueryAction,DetectSuspiciousLoginAction,RecordLoginAuditPurgeAction,ResolveLoginAuditIpAddressAction,SendLoginAuditAdminAlertAction,ShouldTrackAdminActivityAction,ShouldTrackUserIpAddressesAction,UpdateLastSeenForActorAction. - Manifest contributions:
admin-resource: Capell\LoginAudit\Manifest\LoginAuditAdminResourcesContribution,dashboard-widget: Capell\LoginAudit\Manifest\LoginAuditDashboardFilamentWidgetContribution,health-check: Capell\LoginAudit\Manifest\LoginAuditHealthContribution,model: Capell\LoginAudit\Manifest\LoginAuditModelsContribution,permission: Capell\LoginAudit\Manifest\LoginAuditPermissionsContribution,scheduled-job: Capell\LoginAudit\Manifest\LoginAuditPurgeScheduleContribution,setting: Capell\LoginAudit\Manifest\LoginAuditSettingsContribution. - Health checks:
Capell\LoginAudit\Health\LoginAuditHealthCheck.
Data Model
Section titled “Data Model”- Required tables:
login_audit. - Models:
LoginAudit. - Migration files:
2026_05_10_190857_01_create_login_audit_table.php. - Migration impact: run host migrations through the package install flow before opening package surfaces.
- Deletion/retention behaviour: Docs gap unless the package has an explicit pruning command, retention setting, or tested cascade path.
Install Impact
Section titled “Install Impact”- Admin navigation: adds package-owned Filament classes when registered.
- Permissions:
View:LoginAudit. - Public routes: none detected in package route files.
- Database changes: package migrations are declared.
- Settings:
Capell\LoginAudit\Settings\LoginAuditSettings. - Queues or schedules: none detected in standard package paths.
- Cache tags: none declared.
- Commands: none declared.
Common Pitfalls
Section titled “Common Pitfalls”- Run migrations before opening package resources or public routes.
- Configure package settings before testing production-like workflows.
- Keep
composer.json,composer.local.json,capell.json, docs, screenshots, and tests aligned when the package surface changes.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Package surface is missing after install | Provider or manifest is not loaded | Confirm capell.json, package composer.json, and provider registration | Reinstall the package, refresh Composer autoload, and clear host caches |
| Admin screen or command fails on missing table | Package migrations have not run | Check the tables listed in Data Model | Run host migrations and rerun the focused package test |
Quick Start
Section titled “Quick Start”- Install the package:
composer require capell-app/login-audit. - Run the required setup:
php artisan migrate. - Open the related Capell admin surface and verify Login Audit appears.
Next Steps
Section titled “Next Steps”- Package docs
- Overview
- Screenshot contract
- Marketplace assets
- Capell content language plan
- Capell documentation design system
- Capell and package ERD notes
- Related packages: Password Policy, Privacy Center, Diagnostics, Access Gate.
- Focused tests:
vendor/bin/pest packages/login-audit/tests --configuration=phpunit.xml.