承接 zalkarz/cookie-based-auth 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

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:

  1. Add the middleware to your route or route group in your Laravel application.
  2. Configure the required environment variables for authentication credentials.
  3. 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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-16