knowfox / passwordless

Passwordless login for Laravel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Passwordless Login for Laravel

This module implements a Medium/Slack-inspired password-less login for Laravel sites. It is part of the personal knowledge management system Knowfox.

Installation

  • Require the module into your project by
    composer require knowfox/passwordless
    
  • Install the service provider by adding the line
    Knowfox\Passwordless\ServiceProvider::class,
    
    ... in array providers in your config/app.php.
  • Remove the line
    Auth::routes();
    
    ... from your routes/web.php
  • Define a variable MAIL_DOMAIN in your .env.
  • Be sure to set your APP_NAME to the name of your app.
  • Fill in a working mail configuration, e.g. through mailtrap.io

Credits

The approach follows a blog post by Matt Stauffer.

About

Passwordless login for Laravel


Languages

Language:Blade 73.2%Language:PHP 26.8%