rtmatt/htpasswd

There is no license information available for the latest version (0.0.6) of this package.

Automatically generate htpasswd and htaccess entries for Basic Auth

0.0.6 2016-04-15 18:29 UTC

This package is not auto-updated.

Last update: 2024-11-07 01:44:27 UTC


README

Usage

Install

composer require rtmatt/htpasswd

Add Service Provider

Add the following to the 'providers' array in config/app.php

 RTMatt\Htpasswd\Providers\HtpasswdServiceProvider::class,

Run

To generate password guard

php artisan htpasswd:make <username>

This will generate your .htpasswd file and .htaccess entries. Both the username and password will be the name you enter as an argument for the artisan command.

To remove password guard

php artisan htpasswd:delete

This will remove your .htpasswd file and remove the auth entries from .htaccess