rigorbb / laravel-fast-auth-links
Package info
github.com/Rigorbb/laravel-fast-auth-links
Type:package
pkg:composer/rigorbb/laravel-fast-auth-links
0.6.2
2018-04-13 08:22 UTC
Requires
- illuminate/support: ^5.5
Requires (Dev)
- orchestra/testbench: ~3.0
- phpunit/phpunit: ~6.0
This package is not auto-updated.
Last update: 2026-03-18 12:26:09 UTC
README
A package that allows you to add a special hash that temporarily authorizes the user. Without a database.
Installation
Begin by installing this package through Composer.
composer require rigorbb/laravel-fast-auth-links
Usage
You can use these helper methods to add a hash to your links
auth_link_hourly($link, $user); //add hash with hourly active auth_link_daily($link, $user); //add hash with daily active auth_link_monthly($link, $user); //add hash with monthly active
And add HandleFastAuthLink::class middleware in your Kernel.php file.
That's all! Now if user goes through this link with a hash and the hash is active, it will be automatically authorized.