shetabit/visitor
Track and log Laravel visitor info (IP, browser, device, platform, languages, user agent) via request helper, and attach visit logs to models with a Visitable trait. Includes online user detection and visit counting/uniques by IP or user.
Analytics & Personalization Roadmap:
Monetization Features:
Build vs. Buy Decision:
Compliance & Privacy:
/login, /checkout) from logging.purgeLogs() method to the Visitor facade.Real-Time Collaboration Tools:
Content & SEO:
"This package lets us ship real-time user engagement features—like ‘X users are viewing this’—without heavy engineering. For example:
ROI:
"This is a production-ready Laravel package for visitor metadata (IP, browser, device) and model tracking. Here’s the implementation plan:
LogVisits middleware to auto-track visits for models with the Visitable trait.Post models with $post->visitLogs()->count().visitor()->onlineVisitors(User::class) for live collaboration tools.Visitor facade to add custom methods (e.g., purgeLogs() for compliance).Visitable) to add custom visit attributes (e.g., CRM data).Why This Over a Custom Build?
Next Steps:
setVisitor())."How can I help you explore Laravel packages today?