Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Lastus Laravel Package

nzesalem/lastus

Lastus is a lightweight Laravel package for tracking user presence and last-seen activity. It records activity timestamps, exposes simple online/offline helpers, and integrates with Eloquent models to add presence indicators to your application.

View on GitHub
Deep Wiki
Context7

A package to easily add and manage status in your laravel eloquent models

Frequently asked questions about Lastus
What does the Lastus package do in Laravel?
Lastus is a lightweight Laravel package for tracking user presence and last-seen activity. It records activity timestamps and exposes simple online/offline helpers, integrating with Eloquent models to add presence indicators to your application.
How do I install Lastus in a Laravel application?
Install it with Composer using the package name nzesalem/lastus. Confirm that your application meets the PHP and Laravel constraints in the package composer.json before running the command. After installation, inspect the package README and service provider for any config publishing, migrations, or asset steps. Because v5.0.0 is a major release, review upgrade notes before replacing an older version.
Which Laravel and PHP versions does Lastus support?
The available release information indicates Lastus v5.0.0 supports Laravel 10 on PHP 8.1 or newer, but the full support matrix is not documented in the provided notes. Verify the exact constraints in composer.json before adopting it. Also confirm whether older Laravel versions were dropped and whether newer Laravel versions are tested.
How do I add online or offline status to an Eloquent model with Lastus?
Lastus integrates with Eloquent models to expose presence indicators, typically by applying the package's trait or contract to a model and using its helpers to record activity and read status. The provided overview does not list the exact trait and method names, so confirm them in the v5.0.0 source or README. Test the integration on a non-critical model before rolling it out broadly.
Does Lastus require migrations or config publishing?
The provided package overview does not list migrations or publishable configuration assets. Since v5.0.0 is a major release, inspect the service provider and README for config publishing and migration instructions before upgrading. If migrating from an earlier version, diff any published config and migration files to catch breaking changes.
How does Lastus track last-seen activity timestamps?
Lastus records activity timestamps and uses that data to expose online/offline presence helpers. The exact update mechanism and online threshold should be confirmed in the package configuration and source for v5.0.0. Plan how often activity updates occur so the presence data meets your application's accuracy needs.
Is Lastus compatible with Laravel 11 or Laravel 12?
Compatibility with Laravel 11 or Laravel 12 is not confirmed by the provided release information, which only signals Laravel 10 support for v5.0.0. Check the package composer.json constraints and test matrix before adopting it on newer Laravel versions. If you are on Laravel 11 or 12, run a discovery spike and full regression tests first.
Can I use Lastus in production, and what are the risks?
Lastus can be used in production, but the v5.0.0 release notes are sparse, so the technical risk is medium to high until you verify breaking changes, PHP and Laravel constraints, and migration steps. Laravel 10 is also past its security-support window, so do not treat Laravel 10 support alone as a durable platform strategy. Pin the package version, upgrade on an isolated branch, run automated and manual integration tests, and prepare a rollback plan. Avoid combining the package upgrade with unrelated major framework upgrades.
How do I test Lastus presence helpers in my application?
Use Laravel's testing tools to create model records, freeze or manipulate time, trigger the activity updates that Lastus relies on, and assert the online/offline helper results. Confirm the package's exact API and configuration in v5.0.0 so your tests match real behavior. Include regression tests for any events, queues, or cache behavior that presence tracking touches.
What alternatives exist to Lastus for Laravel user presence?
Alternatives include implementing presence with custom middleware and cache or session timestamps, using Laravel's broadcasting presence channels with a service such as Pusher or Laravel WebSockets, or using an activity-log package for timestamp history. Lastus is specifically aimed at adding status and last-seen helpers to Eloquent models, so choose based on whether you need simple model status or real-time presence. Verify maintenance and Laravel version support for any alternative before adopting it.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections