Download the PHP package pownall/laravel-magic-login without Composer
On this page you can find all versions of the php package pownall/laravel-magic-login. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pownall/laravel-magic-login
More information about pownall/laravel-magic-login
Files in pownall/laravel-magic-login
Package laravel-magic-login
Short Description Passwordless login for Laravel. Allows users to login via a magic link.
License MIT
Homepage https://github.com/leepownall/magic-login
Informations about the package laravel-magic-login
Laravel Magic Laravel
Allows you to create a temporary signed route that logs a user in. There is no config file, you define everything when generating the url.
I see the general usage being
User requests login
-> You generate link and send in email
-> User clicks link and is signed in
.
Installation
You can install the package via composer:
Available Methods
redirectToUrl(string $url)
- Default is/
.expiresAt(CarbonInterface $pointInTime)
- Default is1 hour
after generating link.
Usage
Simple usage is:
If you want to alter the redirect url:
or
If you want to make the link expire earlier or later pass a CarbonInterface
to the expireAt
method.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Lee Pownall
- All Contributors
License
The MIT License (MIT). Please see License File for more information.