My Blog Posts

Laravel PasswordLess Login Pack

Laravel PasswordLess Login Pack


Laravel Passwordless entry is a package by Ed Grosvenor that allows you to create a simple and secure login connection for Laravel applications.

Project use case:

use App\User;
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
return $url;
}

This package has configuration options that allow you to configure which model's user model, logon path, and number of minutes the connection will end. See the documentation for full configuration options.

You can learn more about this package, get all the setup instructions, and view the source code on GitHub at grosv/laravel-passwordless-login.



Share this article


Comments (1)

  • 
                                                                                                                          eijsamgsci
    eijsamgsci Reply

    Muchas gracias. ? Como puedo iniciar tone on?

    5 months ago

Comment