laravel-basic-auth maintained by c6digital
Description
Add basic authentication to your Laravel project in seconds.
Author
Last update
2026/03/31 01:30
(dev-dependabot/github_actions/dependabot/fetch-metadata-3.0.0)
License
Downloads
331
Tags
Add basic authentication to your Laravel project in seconds.
This package provides a simple BasicAuth middleware that adds basic authentication to all routes in your application.
Installation
You can install the package via Composer:
composer require c6digital/laravel-basic-auth
Usage
The BasicAuth middleware is automatically registered after installing the package. Use environment variables to toggle and change credentials.
BASIC_AUTH_ENABLED=true
BASIC_AUTH_USERNAME=admin
BASIC_AUTH_PASSWORD=password
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.