上一页 1 ··· 150 151 152 153 154 155 156 157 158 ··· 192 下一页
摘要: 一,安装phpshpreadsheet 1,composer安装 liuhongdi@lhdpc:~$ cd /data/php/admapi/ liuhongdi@lhdpc:/data/php/admapi$ composer require phpoffice/phpspreadsheet 2 阅读全文
posted @ 2022-01-17 21:14 刘宏缔的架构森林 阅读(1565) 评论(0) 推荐(0)
摘要: 一,创建过滤IP的中间件 1,创建: liuhongdi@lhdpc:/data/php/admapi$ php think make:middleware CheckIp Middleware:app\middleware\CheckIp created successfully. 2,代码: m 阅读全文
posted @ 2022-01-15 10:59 刘宏缔的架构森林 阅读(524) 评论(0) 推荐(0)
摘要: 一,thinkphp6配置强制路由: 1,修改config/route.php 设置url_route_must一项的值为true 如下: // 是否强制使用路由 //'url_route_must' => false, 'url_route_must' => true, 2,查看修改后的效果: 访 阅读全文
posted @ 2022-01-15 10:50 刘宏缔的架构森林 阅读(1656) 评论(0) 推荐(0)
摘要: 一,qr-code代码库的地址: https://github.com/endroid/qr-code 说明:刘宏缔的架构森林是一个专注架构的博客, 网站:https://blog.imgtouch.com本文: https://blog.imgtouch.com/index.php/2023/05 阅读全文
posted @ 2022-01-15 10:41 刘宏缔的架构森林 阅读(1221) 评论(0) 推荐(0)
摘要: 一,编写php代码: 1,创建写日志的middleware: liuhongdi@lhdpc:/data/php/admapi$ php think make:middleware AdminLog Middleware:app\middleware\AdminLog created success 阅读全文
posted @ 2022-01-15 10:30 刘宏缔的架构森林 阅读(1794) 评论(0) 推荐(0)
摘要: 一,使用bcrypt实现加密和验证的php代码: class Auth extends BaseController { /* *测试用bcrypt方式验证密码 * *@return \think\Response * */ public function testPass() { //原始密码 $ 阅读全文
posted @ 2022-01-12 18:55 刘宏缔的架构森林 阅读(1595) 评论(0) 推荐(0)
摘要: 一,访问yac的php代码: 1,创建controller liuhongdi@lhdpc:/data/php/admapi$ php think make:controller Yac Controller:app\controller\Yac created successfully. 2,co 阅读全文
posted @ 2022-01-12 18:50 刘宏缔的架构森林 阅读(268) 评论(0) 推荐(0)
摘要: 一,关于yac项目: 1,代码地址 https://github.com/laruence/yac 2,鸟哥博客上的介绍: https://www.laruence.com/tag/yac 说明:刘宏缔的架构森林是一个专注架构的博客, 网站:https://blog.imgtouch.com本文:  阅读全文
posted @ 2022-01-12 18:44 刘宏缔的架构森林 阅读(411) 评论(0) 推荐(0)
摘要: 一,安装firebase/php-jwt扩展: 1,命令: liuhongdi@lhdpc:/data/php/admapi$ composer require firebase/php-jwt 2,安装成功后的位置: 3,查看firebase/php-jwt的版本: liuhongdi@lhdpc 阅读全文
posted @ 2022-01-07 22:05 刘宏缔的架构森林 阅读(2540) 评论(2) 推荐(0)
摘要: 一,vue前端代码 1,Login.vue <template> <div style="padding:20px;display: flex;align-items:center;justify-content: center;"> <form :model="account" style="ma 阅读全文
posted @ 2022-01-07 21:33 刘宏缔的架构森林 阅读(1121) 评论(0) 推荐(0)
上一页 1 ··· 150 151 152 153 154 155 156 157 158 ··· 192 下一页