Looking to hire Laravel developers? Try LaraJobs

laravel-fast-auth-links maintained by rigorbb

Author
Last update
2018/04/13 10:22 (0.6.2)
License
Links
Downloads
83

Comments
comments powered by Disqus

Laravel Fast Auth Links


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.