Download the PHP package whyounes/laravel-passwordless-auth without Composer
On this page you can find all versions of the php package whyounes/laravel-passwordless-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download whyounes/laravel-passwordless-auth
More information about whyounes/laravel-passwordless-auth
Files in whyounes/laravel-passwordless-auth
Package laravel-passwordless-auth
Short Description Laravel passwordless authentication for Laravel
License MIT
Homepage https://github.com/whyounes/laravel-passwordless-auth
Informations about the package laravel-passwordless-auth
Laravel Passwordless
Passwordless authentication for Laravel 5
Installation
Add the package to your project using Composer:
Publish package assets:
Run the migration to create the tokens table:
Add it to you providers list:
Add the Passwordless
trait to your user model:
Configurations
If you don't want to use the user email along with the token, you can change it by overriding the following method:
You can change the expiration time inside the config/passwordless.php
file:
You can set the empty_tokens_after_login
config to false if you don't want to delete unused tokens from DB.
Example
Display the login form for user to type the email:
Catch the form submission:
Catch the login link request:
Or, if you like working with exceptions:
All versions of laravel-passwordless-auth with dependencies
illuminate/database Version 5.1.* || 5.2.* || 5.3.*
illuminate/config Version 5.1.* || 5.2.* || 5.3.*
illuminate/events Version 5.1.* || 5.2.* || 5.3.*