New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

lakm/nopass

Provides passwordless authentication for your laravel projects.
21,357 22
Install
composer require lakm/nopass
Latest Version:1.0.5
PHP:^8.3
Laravel:11 · 12 · 13
Older releases:10
License:MIT
Last Updated:Apr 20, 2026
Links: GitHub  ·  Packagist
Maintainer: Lakshan-Madushanka

Overview

"I'm so fed up with passwords! I have to reset them all the time."

"Oh no, my passwords were leaked. I bet it's my password manager's fault."

"Someone accessed my account—I think they guessed my weak password."

We've all encountered one of these issues at some point. As the internet has evolved, there are now websites for almost everything we need. Modern users often have more than five accounts online.

How many online accounts do you have? The answer is likely more than one—probably more than 10. So, how do you manage to remember the passwords for each of these accounts? Here are a few options you might consider:

  • Memorize them.
  • Use a password manager.
  • Reset your password every time you forget it. 😂

We can easily rule out the first option since most of us aren't blessed with a superhuman memory. While password managers are a popular choice, their security isn't foolproof—data breaches and password leaks happen far too often, making them a less-than-reliable option.

That is the users' side of story. It's our responsibility to provide more convenience authentication methods for our users and improve user experiences. That is what this package made for.

!Note The package doesn't provide any authentication method. Instead, it provides two methods to use in your existing auth system. You can use any authentication like breeze, jetstream or custom one. Sample implementation has been provided in demo project

How it works

The package offers two methods for verification: sending a verification link to the user's email address or sending an OTP (One-Time Password) to the user's mobile number.

    use LakM\NoPass\Facades\NoPass;
    
    $data = [];
    
    $link = NoPass::for($user)
        ->email()
        ->routeName('login-link')
        ->generate($data); // Data are attached to query string

OTP Code

Generate a OTP code

    use LakM\NoPass\Facades\NoPass;
    
    $link = NoPass::for($user)
        ->otp()
        ->generate();

Check validity

Check Email

    use LakM\NoPass\Facades\NoPass;
    
    $isValid = NoPass::for($user)
            ->isValid();

Check OTP

    use LakM\NoPass\Facades\NoPass;
    
    $isValid = NoPass::for($user)
            ->isValid($otp);

Invalidate

    use LakM\NoPass\Facades\NoPass;
    
    $isValid = NoPass::for($user)
            ->inValidate();

Usage Examples

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

./vendor/bin/pest

Security

Please see here for our security policy.

License

The MIT License (MIT). Please see License File for more information.

Related Packages

whyounes/laravel-passwordless-auth

Laravel passwordless authentication for Laravel

41 6
whyounes/laravel-two-factor-auth

Laravel two factor authentication

12 8
cedricve/simpleauth

A simple authentication driver for Laravel

12,672 0
vsch/user-privilege-mapper

A Laravel Service Provider to handle testing of available user security privileg...

8,000 3
abdurrahmanriyad/lumenauth

A package to implement easy authentication in lumen

22 6

Version History

Version Released PHP Laravel License
1.0.5 ^8.3 ^11.0|^12.0|^13.0 MIT
1.0.4 ^8.1 ^10.0|^11.0|^12.0 MIT
1.0.3 ^8.1 ^10.0|^11.0 MIT
1.0.2 ^8.1 ^10.0|^11.0 MIT
1.0.1 ^8.1 ^10.0|^11.0 MIT