LaravelPackages.net
Acme Inc.
Toggle sidebar
rigorbb/laravel-fast-auth-links

83
0
0.6.2
About rigorbb/laravel-fast-auth-links

rigorbb/laravel-fast-auth-links is a Laravel package. It currently has 0 GitHub stars and 83 downloads on Packagist (latest version 0.6.2). Install it with composer require rigorbb/laravel-fast-auth-links. Discover more Laravel packages by rigorbb or browse all Laravel packages to compare alternatives.

Last updated

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.

Comments