定制 intraset/laravel-basic-auth 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

intraset/laravel-basic-auth

最新稳定版本:v1.0.0

Composer 安装命令:

composer require intraset/laravel-basic-auth

包简介

Basic authentication using master credentials for the application.

README 文档

README

Latest Version on Packagist MIT Licensed Total Downloads

Basic authentication using master credentials for the application.

Installation

composer require intraset/laravel-basic-auth

Configuration

Publish the configuration file:

php artisan vendor:publish --provider="Intraset\LaravelBasicAuth\ServiceProvider"

Usage

Activate the middleware in the .env file:

BASIC_AUTH_ENABLED=true

Set the master credentials in the .env file:

BASIC_AUTH_USERNAME=admin
BASIC_AUTH_PASSWORD=secret

Change the middleware alias in the .env file:

BASIC_AUTH_ALIAS=basic.auth

Change the middleware behavior to be applied to the application globally in the .env file:

BASIC_AUTH_GLOBAL=true

Change the middleware behavior to be applied to the middleware group in the .env file:

BASIC_AUTH_GROUP=web

Middleware

The middleware can be used in the following ways:

Route::get('/', function () {
    //
})->middleware('basic.auth');

Testing

composer test

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 84
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-30