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)215MITPHPPHP &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 yesterday

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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

2812d 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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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