vdhoangson/laravel-basic-auth
最新稳定版本:v1.1
Composer 安装命令:
composer create-project vdhoangson/laravel-basic-auth
包简介
The Laravel Basic Auth.
README 文档
README
Installation
You can install this package by composer:
composer require vdhoangson/laravel-basic-auth
Implementation
Use this in routes/web.php
Route::middleware(['basic-auth'])->group(function () { //All the routes are placed in here Route::get('/home', 'DashboardController@dashboard'); });
OR
Route::get('/home', 'DashboardController@dashboard')->middleware('basic-auth');
Configures
BASIC_AUTH_USERNAME=
BASIC_AUTH_PASSWORD=
BASIC_AUTH_REALM=
统计信息
- 总下载量: 37
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-27