PHPackages                             darkghosthunter/passless - 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. darkghosthunter/passless

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

darkghosthunter/passless
========================

Passless is a password-less authentication guard driver for Laravel 5.8

v2.0.2(6y ago)45536MITPHPPHP ^7.1.3

Since Jan 12Pushed 6y agoCompare

[ Source](https://github.com/DarkGhostHunter/Passless)[ Packagist](https://packagist.org/packages/darkghosthunter/passless)[ RSS](/packages/darkghosthunter-passless/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (9)Versions (6)Used By (0)

This package has been abandoned. If you need Passwordless Authentication, [migrate to Laravel Passwordless Login](https://github.com/grosv/laravel-passwordless-login?ref=laravelnews).
=======================================================================================================================================================================================

[](#this-package-has-been-abandoned-if-you-need-passwordless-authentication-migrate-to-laravel-passwordless-login)

[![Robert Gramner - Unsplash (UL) #as2iiiiFdqk](https://camo.githubusercontent.com/79ce86cc195962498f55d1ec78fb85d91e9b1790bc6df0a20a7b99e1240561e5/68747470733a2f2f696d616765732e756e73706c6173682e636f6d2f70686f746f2d313532353036393339363434302d6434633434666135313334333f69786c69623d72622d312e322e31266175746f3d666f726d6174266669743d63726f7026773d3132383026683d34303026713d3830)](https://camo.githubusercontent.com/79ce86cc195962498f55d1ec78fb85d91e9b1790bc6df0a20a7b99e1240561e5/68747470733a2f2f696d616765732e756e73706c6173682e636f6d2f70686f746f2d313532353036393339363434302d6434633434666135313334333f69786c69623d72622d312e322e31266175746f3d666f726d6174266669743d63726f7026773d3132383026683d34303026713d3830)

[![Latest Stable Version](https://camo.githubusercontent.com/03fa10796040c0ac3fdec08d291d97e352e33a7e4f44a731350ec0d239b99f45/68747470733a2f2f706f7365722e707567782e6f72672f6461726b67686f737468756e7465722f706173736c6573732f762f737461626c65)](https://packagist.org/packages/darkghosthunter/passless) [![License](https://camo.githubusercontent.com/30f1dd1f0e07925df7b0091f9b69774de82105531aa1e89659e694335f226824/68747470733a2f2f706f7365722e707567782e6f72672f6461726b67686f737468756e7465722f706173736c6573732f6c6963656e7365)](https://packagist.org/packages/darkghosthunter/passless)[![](https://camo.githubusercontent.com/f7daef170b410f786b9d7f6f7ec700c1a295f8979dd192d76b71abb79bce6618/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6461726b67686f737468756e7465722f706173736c6573732e737667)](https://camo.githubusercontent.com/f7daef170b410f786b9d7f6f7ec700c1a295f8979dd192d76b71abb79bce6618/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6461726b67686f737468756e7465722f706173736c6573732e737667) [![](https://github.com/DarkGhostHunter/Passless/workflows/PHP%20Composer/badge.svg)](https://github.com/DarkGhostHunter/Passless/workflows/PHP%20Composer/badge.svg) [![Coverage Status](https://camo.githubusercontent.com/b75875ad50115645e7944177f4ecfdacc53a1f7395473cf9491e6e8d46236747/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4461726b47686f737448756e7465722f506173736c6573732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/DarkGhostHunter/Passless?branch=master) [![Maintainability](https://camo.githubusercontent.com/4626dbb2f18a9c56d3c7221dd18aa6ede66d1f517ac5a1e5a5e8d6c99c9c9194/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f38663137393061303063323634653238376466342f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/DarkGhostHunter/Passless/maintainability)

Passless
========

[](#passless)

Passwordless Authentication Driver for Laravel. Just add water.

Requirements
------------

[](#requirements)

- Laravel 6 or Laravel 7

> Check older releases for older Laravel versions.

What includes
-------------

[](#what-includes)

- Passless Authentication Guard Driver
- Passless Login Controller
- `LoginAuthentication` Notification
- Little magic

Install
-------

[](#install)

Just fire up Composer and require it into your Laravel project:

```
composer require darkghosthunter/passless
```

How it works
------------

[](#how-it-works)

This guards extends the default `SessionGuard` and only overrides the authentication method to **not** check the password, only if the user exists by the given credentials (email or whatever keys you set in your form or controller).

To register your users without a password, allow in your migration files the `password` string to be `nullable()`. Alternatively, pass an empty string on registration.

```
Schema::create('users', function (Blueprint $table) {
    // ...

    $table->string('password')->nullable();

    $table->rememberToken();
    $table->timestamps();
});
```

In your login form, you can discard the password input and leave only the email or username.

```

    @csrf

 [
    'web' => [
        'driver' => 'passless',
        'provider' => 'users',
    ],
    'api' => [
        'driver' => 'token',
        'provider' => 'users',
    ],
],

```

> Remember to set the correct guard (in this case, `web`) to use the passless driver in your Login and Register Controllers.

### 2) Disable the password validation

[](#2-disable-the-password-validation)

In your login form you shouldn't have the `password` input. If you're using the default `Auth\LoginController` class, you should override the `validateLogin()` method and disable the password validation.

```
/**
 * Validate the user login request.
 *
 * @param  \Illuminate\Http\Request  $request
 * @return void
 */
protected function validateLogin(Request $request)
{
    $this->validate($request, [
        $this->username() => 'required'
        // 'password' => 'required
    ]);
}
```

### 3) Add the proper Login response

[](#3-add-the-proper-login-response)

Since the user won't be logged in immediately into your application when your credentials are validated, you should return a view which Notifies the user to check his email with a message or alert.

While you are free to use any View to inform the user, you can just simply add a [flash notification](https://laravel.com/docs/session#flash-data) in your Login route, along with the [proper markup](https://laravel.com/docs/blade) to retrieve and show the notification in the view.

If you're using the default controller, add or replace this code:

```
/**
 * The user has been authenticated.
 *
 * @param  \Illuminate\Http\Request  $request
 * @param  mixed  $user
 * @return \Illuminate\Http\Response
 */
protected function authenticated(Request $request, $user)
{
    $request->flashOnly(['email']);

    $request->session()->flash('success', 'Check your email to log in!');

    return response()->view('auth.login');
}
```

> Since there is no password check in the login form, you may want to add a throttler middleware like `throttle:60,3` to your Login route to avoid mail asphyxiation.

Configuration
-------------

[](#configuration)

For fine tuning, publish the Passless configuration:

```
php artisan vendor:publish --provider="DarkGhostHunter\Passless\PasslessServiceProvider"
```

You should definitively edit this config file if:

- You're using a custom authentication controllers.
- You're using additional middleware across your routes.
- Need a different Login for Passless.
- Need a better Notification for your Login Email.

The contents of the config file are self-explanatory, so check the comments over each setting key.

License
-------

[](#license)

This package is licenced by the [MIT License](LICENSE).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Total

4

Last Release

2487d ago

Major Versions

v1.0.0 → v2.0.02019-03-02

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5141911?v=4)[Italo](/maintainers/DarkGhostHunter)[@DarkGhostHunter](https://github.com/DarkGhostHunter)

---

Top Contributors

[![DarkGhostHunter](https://avatars.githubusercontent.com/u/5141911?v=4)](https://github.com/DarkGhostHunter "DarkGhostHunter (17 commits)")

---

Tags

authenticationlaravelpasswordlessphpphp7

### Embed Badge

![Health badge](/badges/darkghosthunter-passless/health.svg)

```
[![Health](https://phpackages.com/badges/darkghosthunter-passless/health.svg)](https://phpackages.com/packages/darkghosthunter-passless)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[laragear/two-factor

On-premises 2FA Authentication for out-of-the-box.

339785.3k8](/packages/laragear-two-factor)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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