Provides basic auth using a config file for credentials
mdmahbubhelal/config-basic-auth is a Laravel package for provides basic auth using a config file for credentials.
It currently has 0 GitHub stars and 14 downloads on Packagist (latest version 1.0.1).
Install it with composer require mdmahbubhelal/config-basic-auth.
Discover more Laravel packages by mdmahbubhelal
or browse all Laravel packages to compare alternatives.
Last updated
Useful mostly in staging scenarios where you don't want website publicly accessible by everyone.
Default credentials are:
username: user0
password: password0
username: user1
password: password1
composer require mdmahbubhelal/config-basic-auth --dev
you can publish config by running:
php artisan vendor:publish --provider="MdMahbubHelal\ConfigBasicAuth\ConfigBasicAuthServiceProvider" --tag="config"
that will publish basicauth.php file in config directory
Basic auth can be disabled by adding BASICAUTH_ENABLED=false in .env
You can change the username and password in the users array:
'users' => [
[
'username' => 'user0',
'password' => 'password0',
],
[
'username' => 'user1',
'password' => 'password1',
]
],