PHPackages                             irius-digital/last-login-activity - 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. irius-digital/last-login-activity

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

irius-digital/last-login-activity
=================================

Package to get last login activity

1.0.0(4y ago)26[2 PRs](https://github.com/irius-digital/last-login-activity/pulls)MITPHPPHP ^8.0

Since Apr 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/irius-digital/last-login-activity)[ Packagist](https://packagist.org/packages/irius-digital/last-login-activity)[ Docs](https://github.com/irius-digital/last-login-activity)[ RSS](/packages/irius-digital-last-login-activity/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (8)Versions (5)Used By (0)

[![](https://camo.githubusercontent.com/2bedf63f24cda7efab02da955dc11fb7ef8a060e2f26b73c33a7aac84529b8a3/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f737570706f72742d756b7261696e652e7376673f743d31)](https://supportukrainenow.org)

Simple package to get and logged last login activity/activities
===============================================================

[](#simple-package-to-get-and-logged-last-login-activityactivities)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cb72796ce280070c604407acd031ee0a355cb4fb130941bcd36619329581e8a9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69726975732d6469676974616c2f6c6173742d6c6f67696e2d61637469766974792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/irius-digital/last-login-activity)[![GitHub Tests Action Status](https://camo.githubusercontent.com/35fe3c41c7ef103206890ab307b48cd9f8b4d6fcd680eb9cf91ec92583c03704/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f69726975732d6469676974616c2f6c6173742d6c6f67696e2d61637469766974792f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/irius-digital/last-login-activity/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6a5277c4f257c8f4937747294fd47edc43c4c9d83dd6cfa85c842afc2b373482/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f69726975732d6469676974616c2f6c6173742d6c6f67696e2d61637469766974792f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/irius-digital/last-login-activity/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/88938f5bbe73ad0d2f81c1229efc04db94ad0a7571c78ae487188dd9f3b073e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f69726975732d6469676974616c2f6c6173742d6c6f67696e2d61637469766974792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/irius-digital/last-login-activity)

Simple package where you can save user login activity (my first time to create a package) apologies.

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

[](#installation)

You can install the package via composer:

```
composer require irius-digital/last-login-activity
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="last-login-activity-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="last-login-activity-config"
```

This is the contents of the published config file:

```
return [
    'save_last_login' => [
        'enabled' => env('SAVE_LAST_LOGIN', true),
    ],
];
```

Usage
-----

[](#usage)

Add this to your EventServiceProvider.php

```
use Illuminate\Auth\Events\Login;
use IriusDigital\LastLoginActivity\Events\LastActivityEvent;

protected $listen = [
        Login::class => [
            LastActivityEvent::class,
        ],
    ];
```

Add to your user model

```
use IriusDigital\LastLoginActivity\Traits\LoginActivities;

class User extends Authenticatable
{
    ...
    use LoginActivities;

```

Then you can access your user model with

```
    $user->latestLoggedIp

    $user->loginActivities
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Aron Quiray](https://github.com/irius-digital)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

1544d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/52eef3ae16b942182718457dd56dd83369b7cecc6b9763befb4396a839059af1?d=identicon)[aronquiray](/maintainers/aronquiray)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")[![aronquiray](https://avatars.githubusercontent.com/u/13714092?v=4)](https://github.com/aronquiray "aronquiray (7 commits)")

---

Tags

laravelirius-digitallast-login-activity

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/irius-digital-last-login-activity/health.svg)

```
[![Health](https://phpackages.com/badges/irius-digital-last-login-activity/health.svg)](https://phpackages.com/packages/irius-digital-last-login-activity)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M46](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[stephenjude/laravel-wallet

A simple wallet implementation for Laravel

26611.9k](/packages/stephenjude-laravel-wallet)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)

PHPackages © 2026

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