Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

Latest commit

 

History

History
29 lines (18 loc) · 769 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 769 Bytes

SimplePass for Laravel

A simple site-wide lockout (kinda like Basic HTTP auth).

Install using Composer:

composer require thepublicgood/simplepass

Set a new password with:

php ./artisan simplepass:set MY_PASSWORD

This will set a SIMPLE_SECRET value in .env.

When attempting to browse your site, you'll get redirected to /simplepass/auth and a password request. Use the password you set to unlock. If you ever need to log out, simply visit /simplepass/logout.

Configuration

You can publish the configuration file with:

php ./artisan vendor:publish --provider=TPG\\Simple\\ServiceProvider

That will place a simplepass.php file in the config directory. Configuration options have been documented in the configuration file.