PHPackages                             fomvasss/laravel-last-visit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. fomvasss/laravel-last-visit

AbandonedArchivedComposer-package[Utility &amp; Helpers](/categories/utility)

fomvasss/laravel-last-visit
===========================

Check last visit user

1.0.0(7y ago)115MITPHPPHP &gt;=7.0.0

Since Aug 31Pushed 7y ago1 watchersCompare

[ Source](https://github.com/fomvasss/laravel-last-visit)[ Packagist](https://packagist.org/packages/fomvasss/laravel-last-visit)[ RSS](/packages/fomvasss-laravel-last-visit/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel last visit
==================

[](#laravel-last-visit)

A package for fixing the last visit of an authorized user in the system

Installation
------------

[](#installation)

Require this package with composer

```
composer require fomvasss/laravel-last-visit
```

Publish package config (if need)

```
php artisan vendor:publish --provider="Fomvasss\LastVisit\ServiceProvider"
```

Add middleware to `Http/Kernel.php`, for example in `web` group:

```
    protected $middlewareGroups = [
        'web' => [
            //...
            \Fomvasss\LastVisit\Middleware\LogLastVisitMiddleware::class,
        ],
    ];
```

Usage
-----

[](#usage)

- Add in your User model next trait: `Visitable` (`Fomvasss\LastVisit\Traits`)
- Use method `isOnline()`

Example:

```
$users = User::select('id')->get();
foreach ($user as $user) {
    if ($user->isOnline()) {
        $user->last_visit = \Carbon\Carbon::now();
        $user->save();
    }
}
```

This code you can use in CRON schedule.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2861d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f99b460639e7d6871597882226b1e0d9e3055992eac8b22bfcd4f90fbdac95c?d=identicon)[fomvasss](/maintainers/fomvasss)

---

Top Contributors

[![fomvasss](https://avatars.githubusercontent.com/u/19834478?v=4)](https://github.com/fomvasss "fomvasss (1 commits)")

---

Tags

laravelvisitfomvasss

### Embed Badge

![Health badge](/badges/fomvasss-laravel-last-visit/health.svg)

```
[![Health](https://phpackages.com/badges/fomvasss-laravel-last-visit/health.svg)](https://phpackages.com/packages/fomvasss-laravel-last-visit)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[webwizo/laravel-shortcodes

Wordpress like shortcodes for Laravel 11, 12 and 13

223700.9k8](/packages/webwizo-laravel-shortcodes)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[erag/laravel-pwa

A simple and easy-to-use PWA (Progressive Web App) package for Laravel applications.

177124.1k](/packages/erag-laravel-pwa)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
