taldres/laravel-last-seen
A lightweight Laravel package for tracking user last-seen timestamps and online status. Record activity, query when users were last active, and display presence indicators with minimal setup and Eloquent-friendly integration. Ideal for dashboards, admin panels, and member directories.
laravel-last-seen is a narrow, single-purpose package (persisting and exposing a user's "last seen" timestamp, typically via middleware and a model column/trait). It removes the question of whether to hand-roll presence tracking for features like "Active 2 hours ago," online indicators, or inactivity-based lifecycle messaging.Consider adopting when:
last_seen/last_activity timestamp on one or more Eloquent models and want it done with conventional Laravel patterns (middleware + trait/column) rather than bespoke code.Look elsewhere when:
Release-specific guidance: v1.6.2 carries no breaking changes, deprecations, or new features. Treat it as a routine patch; no migration, retest, or roadmap replan is warranted. Pin to a known-good version and let routine patches flow through your normal dependency cadence.
For executives (30 seconds): We evaluated a small open-source add-on that records when each user was last active. It lets us ship "last seen" indicators and inactivity-based re-engagement without building or buying a presence platform. Cost is effectively zero, risk is low because it is a thin, easily replaceable layer, and the maintainer is actively keeping it aligned with current Laravel conventions. Recommendation: adopt for coarse "last active" needs; do not treat it as a real-time presence solution.
For engineering leads: This is a conventional middleware-plus-column implementation, not infrastructure. Latest release (v1.6.2) is maintenance only — code style and tooling alignment with Laravel conventions, no API or behavior changes, so no upgrade risk beyond a routine composer update. Integration is low-effort and low-coupling; the main engineering judgment is write amplification on hot user rows, which we should sanity-check against our traffic profile before enabling broadly, and consider sampling or caching if it becomes measurable. Absent a real-time requirement, this replaces custom tracking code with a maintained, familiar pattern.
How can I help you explore Laravel packages today?