zalkarz/cookie-based-auth
最新稳定版本:1.0.0
Composer 安装命令:
composer require zalkarz/cookie-based-auth
包简介
Cookie-based authentication middleware for Laravel.
README 文档
README
Cookie-based authentication is a Laravel middleware that provides cookie-based authentication functionality. It allows you to secure your application from any access.
Installation
You can install this package via Composer. Simply run the following command:
composer require zalkarz/cookie-based-auth
Usage
To use the Cookie-based authentication middleware, follow these steps:
- Add the middleware to your route or route group in your Laravel application.
- Configure the required environment variables for authentication credentials.
- Customize the authentication logic if needed.
Here's an example of how to add the middleware to a route group:
protected $middlewareGroups = [ 'web' => [ ... \Zalkarz\CookieBasedAuth\Http\Middleware\CookieBasedAuth::class ], ];
Configuration
Make sure to set these environment variables in your .env file or your server configuration. For example:
COOKIE_BASED_AUTH_USERNAME=johndoe COOKIE_BASED_AUTH_PASSWORD=mypassword
Contributing
Contributions are welcome! If you find any issues or want to add new features, please submit a pull request.
License
This package is open-source software licensed under the MIT license.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-16