定制 shf/licheck 二次开发

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

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

shf/licheck

最新稳定版本:1.1

Composer 安装命令:

composer require shf/licheck

包简介

License Check

README 文档

README

###许可证验证

  • 1、到 http://licheck.hi15.net:8080/admin 测试帐号:demo 密码:demo 发邮件申请帐户(shuai3970@gmail.com)

  • 2、添加自己的项目 img.png

  • 3、获取插件并发布插件

    composer require shf/licheck
    
    php artisan vendor:publish --provider="Shf\LiCheckServiceProvider"
    
  • 5、.evn 里面添加项目名配置

    LI_PROJECT_NAME="demo.v2" 
    
  • 6、添加中间件 app/Http/Kernel.php 添加 LiCheck::class

    protected $middlewareGroups = [
          'web' => [
              \App\Http\Middleware\EncryptCookies::class,
              \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
              \Illuminate\Session\Middleware\StartSession::class,
              // \Illuminate\Session\Middleware\AuthenticateSession::class,
              \Illuminate\View\Middleware\ShareErrorsFromSession::class,
              \App\Http\Middleware\VerifyCsrfToken::class,
              \Illuminate\Routing\Middleware\SubstituteBindings::class,
              \Shf\Middleware\LiCheck::class
    
          ],
    
          'api' => [
              'throttle:60,1',
              'bindings',
          ],
      ];
    

    结果

img_1.png

自定义错误(可选)

在app/Exceptions/LiCheckException.php路径下修改

 public function render()
{
   return $this->getMessage();
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固