Download the PHP package karlmonson/laravel-magic without Composer
On this page you can find all versions of the php package karlmonson/laravel-magic. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download karlmonson/laravel-magic
More information about karlmonson/laravel-magic
Files in karlmonson/laravel-magic
Package laravel-magic
Short Description Laravel Magic is a passwordless authentication driver
License MIT
Informations about the package laravel-magic
Laravel Magic
Laravel Magic is a passwordless authentication driver. Users receive a login link via email.
Installation
Install via Composer:
The package service provider and facade will be automatically registered.
Setup
After installation, run migrations:
This will create a new table in your database.
Next, replace the default trait on your with the following:
You'll also need to add the trait to your user model:
We suggest dropping the column from your user table, or at least making it .
Configuration
Next, in your config file, replace the 'users' driver with 'magic':
You may also specify an 'expire' option for Magic to use, this is how long login tokens will stay alive. The default is 10 if this is not specified.
Credits
- Karl Monson - Author
- Fast - Inspiration
- Slack - Inspiration
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-magic with dependencies
illuminate/database Version ^6.0
illuminate/notifications Version ^6.0
illuminate/support Version ^6.0