mark-domkan/env-token-auth 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

mark-domkan/env-token-auth

Composer 安装命令:

composer require mark-domkan/env-token-auth

包简介

Adds the ability to use environtment token for the auth:api middleware.

README 文档

README

Latest Version on Packagist Total Downloads

Adds the ability to use token saved in env for the auth:api middleware.

Install

  1. Install the package with composer:

    composer require markdomkan/env-token-auth
  2. Set the api guard driver to env-token in the file config/auth.php:

    'guards' => [
        // ...
    
        'api' => [
            'driver'   => 'env-token', // <- Change this FROM token TO env-token
            
            // ...
        ],
    ],

Usage

  1. Add AUTH_TOKEN in .env file.

  2. Make a call with Authorization header with token (without Bearer).

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固