PHPackages                             malekk/laravel-auth-log - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. malekk/laravel-auth-log

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

malekk/laravel-auth-log
=======================

Laravel package for authentication log

17PHP

Since Feb 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Malekk/laravel-auth-log)[ Packagist](https://packagist.org/packages/malekk/laravel-auth-log)[ RSS](/packages/malekk-laravel-auth-log/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Authentication Log
==========================

[](#laravel-authentication-log)

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

[](#installation)

> Laravel Authentication Log requires PHP 7.0+.

You may use Composer to install Laravel Authentication Log into your Laravel project:

```
composer require malekk/laravel-auth-log

```

### Configuration

[](#configuration)

Once installed, if you are not using automatic package discovery, then you need to register the `Malekk\LaravelAuthLog\AuthLogServiceProvider` service provider in your config/app.php.

You need to migrate your database, the laravel-auth-log migration will create the table to store authentication logs:

```
php artisan migrate

```

Finally, add the `AuthenticationLogable` trait to your `User` model (by default, `App\Models\User` model). The trait provide various methods to allow you to get common authentication log data, such as last login time, last login IP address:

```
namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Malekk\LaravelAuthLog\Models\AuthenticationLogable;

class User extends Authenticatable
{
    use AuthenticationLogable;
}
```

### Basic Usage

[](#basic-usage)

Get all authentication logs for the user:

```
User::find(1)->authentications;
```

Get the user last login info:

```
User::find(1)->lastLoginAt();

User::find(1)->lastLoginIp();
```

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

[](#contributing)

Thank you for considering contributing to the laravel-auth-log!

License
-------

[](#license)

Laravel-Auth-Log is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f88d29700b20dceb0de7f2eecff1a377f80aa315fed2b9dd6866a39b7f47dace?d=identicon)[Malekk](/maintainers/Malekk)

---

Top Contributors

[![Malekk](https://avatars.githubusercontent.com/u/3941676?v=4)](https://github.com/Malekk "Malekk (3 commits)")

### Embed Badge

![Health badge](/badges/malekk-laravel-auth-log/health.svg)

```
[![Health](https://phpackages.com/badges/malekk-laravel-auth-log/health.svg)](https://phpackages.com/packages/malekk-laravel-auth-log)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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