PHPackages                             fabpl/laravel-model-login - 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. fabpl/laravel-model-login

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

fabpl/laravel-model-login
=========================

Laravel package to collect login attempt

1.1.0(5y ago)168↓100%MITPHPPHP ^7.3|^8.0

Since Feb 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/fabpl/laravel-model-login)[ Packagist](https://packagist.org/packages/fabpl/laravel-model-login)[ RSS](/packages/fabpl-laravel-model-login/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Model Login
===================

[](#laravel-model-login)

Simply collect login attempt.

[![styleci.io](https://camo.githubusercontent.com/3919bd8ce71cac7df5708293ebd4e1a176bef459a7891557a8ccb7d041a502ee/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3333383035313434362f736869656c64)](https://camo.githubusercontent.com/3919bd8ce71cac7df5708293ebd4e1a176bef459a7891557a8ccb7d041a502ee/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3333383035313434362f736869656c64)

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

[](#installation)

Install package via composer:

```
composer require fabpl/laravel-model-login
```

Optionally you can publish `config` and `mmigrations` files with:

```
php artisan model-login:publish
```

Migrate the `logins` table:

```
php artisan migrate
```

Usage
-----

[](#usage)

Add the `HasLogins` trait to your user model.

```
use Fabpl\ModelLogin\Traits\HasLogins;

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

### Retrieving logins

[](#retrieving-logins)

You can get the logins collections:

```
$userModel->logins;
$userModel->successful_logins;
$userModel->failed_logins;
```

You can browser logins using `LoginInterface` binding:

```
use Fabpl\ModelLogin\Contracts\LoginInterface;

public function index(LoginInterface $login)
{
    $logins = $login->all();

    //
}
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md).

### Security

[](#security)

If you discover any security related issues, please email planchettefabrice *at* hotmail.com instead of using the issue tracker.

Credits
-------

[](#credits)

- [Fabrice Planchette](https://fabpl.github.io)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~3 days

Total

4

Last Release

1906d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/69b7c03d8ddf04ea840dc49371523f2c0956e2afafd98f5815d1da55cdb67824?d=identicon)[fabpl](/maintainers/fabpl)

---

Top Contributors

[![fabpl](https://avatars.githubusercontent.com/u/6574025?v=4)](https://github.com/fabpl "fabpl (10 commits)")

---

Tags

authlaravelloginmodellaravelauthmodellogin

### Embed Badge

![Health badge](/badges/fabpl-laravel-model-login/health.svg)

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

###  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)[cesargb/laravel-magiclink

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

4571.3M](/packages/cesargb-laravel-magiclink)[jotaelesalinas/laravel-adminless-ldap-auth

Authenticate users in Laravel against an adminless LDAP server

2105.1k](/packages/jotaelesalinas-laravel-adminless-ldap-auth)[mad-web/laravel-social-auth

Easy social auth integration with a lot of available providers

516.7k](/packages/mad-web-laravel-social-auth)

PHPackages © 2026

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