PHPackages                             josegus/laravel-quick-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. josegus/laravel-quick-login

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

josegus/laravel-quick-login
===========================

Quick auth &amp; login

v1.0.0(1y ago)08MITPHPPHP ^8.1

Since Jan 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/josegus/laravel-quick-login)[ Packagist](https://packagist.org/packages/josegus/laravel-quick-login)[ Docs](https://github.com/josegus/laravel-quick-login)[ GitHub Sponsors](https://github.com/GustavoVasquez)[ RSS](/packages/josegus-laravel-quick-login/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Quick Login
===================

[](#laravel-quick-login)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e4cec8523d211a9f4530383e98bf96c0da4fbf16c4d8c5e5bd18375f80341c1b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6f73656775732f6c61726176656c2d717569636b2d6c6f67696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/josegus/laravel-quick-login)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e954e010e1c9577a768320255e75b2fdf794c8c239f611ec816190f0d46f7327/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6f73656775732f6c61726176656c2d717569636b2d6c6f67696e2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/josegus/laravel-quick-login/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/db28a8e6f4e24522f5c6986b22b7d9cf8c7ea620ace17e26130fc6ab7c8b5dbc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6f73656775732f6c61726176656c2d717569636b2d6c6f67696e2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/josegus/laravel-quick-login/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/8feaea69f9c152720aa50904ba797ab08772b5079f17d432a43a3baff1771b1e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f73656775732f6c61726176656c2d717569636b2d6c6f67696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/josegus/laravel-quick-login)

A simple Laravel component that enables quick login functionality for development environments.

In short, it includes a blade component that you can include in your login view to:

- create new users and automatically log in as the created user, with one click
- select an existing user to log in, with one click

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

[](#installation)

You can install the package via composer:

```
composer require josegus/laravel-quick-login
```

You can publish the config file with:

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

This will create the `config/quick-login.php` file with the following options:

```
return [
    'model' => \App\Models\User::class,

    'displayed_attribute' => 'email',

    'redirect_to' => env('QUICK_LOGIN_REDIRECT_TO', 'dashboard'),
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="quick-login-views"
```

Usage
-----

[](#usage)

### Blade Component

[](#blade-component)

The package includes a Blade component that you can use in any view:

```

```

The above code will use Laravel's default authentication model (`App\Models\User`) and guard (`web`).

### Using a different guard

[](#using-a-different-guard)

If your app uses a different guard, pass it as a parameter to the component:

```

```

### Using factory states

[](#using-factory-states)

To create new users, the package will use the factory defined in your auth model, so make sure your auth model uses the `HasFactory` trait. You can pass an array of factory states that will be applied when the package creates new users:

```

```

### Using extra model attributes

[](#using-extra-model-attributes)

Alternatively, you can pass an array of properties that will be applied when the package creates new users:

```

```

Advanced Customization
----------------------

[](#advanced-customization)

### Change the Displayed Attribute

[](#change-the-displayed-attribute)

By default, the user's email is displayed. You can change this in the configuration:

```
// config/quick-login.php
return [
    'displayed_attribute' => 'username',
];
```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

This package is open-source software licensed under the MIT license.

Security
--------

[](#security)

⚠️ **Warning**: This package is designed for development environments only. It is not recommended for use in production.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance42

Moderate activity, may be stable

Popularity4

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

Unknown

Total

1

Last Release

477d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/65bdcc265c753c43d5a0698ed5b5e21ac35521575b913886e8b281bec716c4d6?d=identicon)[josegus](/maintainers/josegus)

---

Top Contributors

[![josegus](https://avatars.githubusercontent.com/u/13947849?v=4)](https://github.com/josegus "josegus (24 commits)")

---

Tags

laravelAuthenticationimpersonateloginlaravel-quick-login

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/josegus-laravel-quick-login/health.svg)

```
[![Health](https://phpackages.com/badges/josegus-laravel-quick-login/health.svg)](https://phpackages.com/packages/josegus-laravel-quick-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)[maize-tech/laravel-magic-login

Laravel Magic Login

1808.1k](/packages/maize-tech-laravel-magic-login)[alajusticia/laravel-logins

Session management in Laravel apps, user notifications on new access, support for multiple separate remember tokens, IP geolocation, User-Agent parser

2011.0k](/packages/alajusticia-laravel-logins)[zefy/laravel-sso

Simple PHP SSO integration for Laravel

1033.0k](/packages/zefy-laravel-sso)

PHPackages © 2026

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