PHPackages                             lamalama/laravel-login-attempts - 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. lamalama/laravel-login-attempts

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

lamalama/laravel-login-attempts
===============================

Register unique login attempts and get notified of suspicious attempts via email

0.1.1(5y ago)068MITPHP

Since Jun 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/lamalamaNL/laravel-login-attempts)[ Packagist](https://packagist.org/packages/lamalama/laravel-login-attempts)[ Docs](https://github.com/lamalamaNL/laravel-login-attempts)[ RSS](/packages/lamalama-laravel-login-attempts/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Login Attempts
======================

[](#laravel-login-attempts)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f496d410d3708acbd5fdc4373ce9707951293e23d6c1fcc514145e96b31380ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c616d616c616d612f6c61726176656c2d6c6f67696e2d617474656d7074732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lamalama/laravel-login-attempts)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![StyleCI](https://camo.githubusercontent.com/42882a2a00d5692e59f4165b0e10afca574329052a49648fa1528784161e5279/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3236383231373933382f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/268217938)[![Total Downloads](https://camo.githubusercontent.com/b0c1af5d6b3e3172e4323438347f68f1322222339d4b3ad3be262f8d945ae4ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c616d616c616d612f6c61726176656c2d6c6f67696e2d617474656d7074732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lamalama/laravel-login-attempts)

Register unique login attempts and get notified of suspicious attempts via email.

Install
-------

[](#install)

Via Composer

```
$ composer require lamalama/laravel-login-attempts
```

You can publish the migration with:

```
php artisan vendor:publish --provider="LamaLama\LoginAttempts\LoginAttemptsServiceProvider" --tag="migrations"
```

After publishing the migration you can create the `login_attempts` table by running the migrations:

```
php artisan migrate
```

You can optionally publish the config file with:

```
php artisan vendor:publish --provider="LamaLama\LoginAttempts\LoginAttemptsServiceProvider" --tag="config"
```

Use
---

[](#use)

Add the `LamaLama\LoginAttempts\Listeners\AuthEventSubscriber` to the `$subscribe` variable in the `app/Providers/EventServiceProvider.php` file.

```
/**
 * The subscriber classes to register.
 *
 * @var array
 */
protected $subscribe = [
    'LamaLama\LoginAttempts\Listeners\AuthEventSubscriber',
];
```

Set the email addresses which shoud receive notifications in your .env file:

```
LOGIN_ATTEMPTS_EMAIL="laravel@lamalama.nl, laravel@lamalama.com"

```

### Commands

[](#commands)

Clear all login attempts in the database

```
php artisan login-attempts:clear
```

Clear all failed login attempts in the database

```
php artisan login-attempts:clear-failed
```

Clear all login succeeded attempts in the database

```
php artisan login-attempts:clear-succeeded
```

Change log
----------

[](#change-log)

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

Credits
-------

[](#credits)

- [Lama Lama](https://github.com/lamalamaNL)
- [Mark de Vries](https://github.com/lamalamaMark)

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Every ~4 days

Total

4

Last Release

2156d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5006f251730996960567ed6065dceb6a978ad34f9a9d3d27dac9ecb612c15a70?d=identicon)[lamalamaMark](/maintainers/lamalamaMark)

---

Top Contributors

[![lamalamaMark](https://avatars.githubusercontent.com/u/1886210?v=4)](https://github.com/lamalamaMark "lamalamaMark (37 commits)")

---

Tags

authlaravelphplaravelauthauthorizationlogin

### Embed Badge

![Health badge](/badges/lamalama-laravel-login-attempts/health.svg)

```
[![Health](https://phpackages.com/badges/lamalama-laravel-login-attempts/health.svg)](https://phpackages.com/packages/lamalama-laravel-login-attempts)
```

###  Alternatives

[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M68](/packages/auth0-auth0-php)[cesargb/laravel-magiclink

Create secure link for access to private data or login in Laravel without password

4571.3M](/packages/cesargb-laravel-magiclink)[auth0/wordpress

WordPress Plugin for Auth0

17419.5k](/packages/auth0-wordpress)[hydrat-agency/laravel-2fa

This package allow you to enable two-factor authentication in your Laravel applications. It stores tokens locally and notify users about their token via mail, SMS or any custom channel. Includes native conditionnal check to trigger or not 2FA, using known devices, IP addresses or IP locations.

1616.4k](/packages/hydrat-agency-laravel-2fa)[jotaelesalinas/laravel-adminless-ldap-auth

Authenticate users in Laravel against an adminless LDAP server

2105.1k](/packages/jotaelesalinas-laravel-adminless-ldap-auth)

PHPackages © 2026

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