rigorbb/laravel-fast-auth-links

0.6.2 2018-04-13 08:22 UTC

This package is not auto-updated.

Last update: 2025-06-25 09:10:55 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.