tecbeast/basic-auth-with-env
Composer 安装命令:
composer require tecbeast/basic-auth-with-env
包简介
A middleware for Laravel 5.1+ where you can use basic auth with any webserver. Dependend only one config file.
README 文档
README
A middleware for Laravel 5.1+ where you can use basic auth with any webserver. Depending only on one config file.
Installation
composer require tecbeast/basic-auth-with-env
Add the service provider to the providers array in config/app.php:
'providers' => [
...
TecBeast\BasicAuthWithEnv\BasicAuthServiceProvider::class,
],
Add the middleware to the middleware array (for global, otherwise add to route or group (Laravel 5.2+)) in app/Http/Kernel.php:
protected $middleware = [
...
\TecBeast\BasicAuthWithEnv\Middleware\BasicAuth::class,
];
Publish the config to your application:
php artisan vendor:publish --provider="TecBeast\BasicAuthWithEnv\BasicAuthServiceProvider"
统计信息
- 总下载量: 1.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-10