Laravel Passwordless login is a package by Ed Grosvenor that enables the creation of a simple and secure login connection for Laravel applications.
Use case for the project:
use Grosv\LaravelPasswordlessLogin\LoginUrl;function sendLoginLink()
$user = User::find(1); $generator = new LoginUrl($user);
$url = $generator->generate(); // OR Use a Facade
$url = PasswordlessLogin::forUser($user)->generate(); // Send $url in an email or text message to your user
This package contains configuration options that allow you to configure which model's user model, sign-in path, and number of minutes the connection ends. See documentation for full configuration options.