摘要: 解决方法: 在App\Exceptions\Handler里面重写父类的 unauthenticated()方法 <?php namespace App\Exceptions; use Exception; use Illuminate\Foundation\Exceptions\Handler a 阅读全文
posted @ 2020-04-29 15:43 天梯小蔡 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 写个大概 1 先安装 phpcs composer global require "squizlabs/php_codesniffer=*" 点开 设置一下 就可以了 如何让phpstorm 支持 psr2 格式化呢 这样差不多 就可以让phpstorm 按照 ps2的规则来格式化 可能会有一点问题 阅读全文
posted @ 2020-04-03 17:00 天梯小蔡 阅读(4661) 评论(0) 推荐(0) 编辑
摘要: npm install --save miniprogram-api-promise getPhoneNumber: function (e) { console.log(e) var ivObj = e.detail.iv var telObj = e.detail.encryptedData v 阅读全文
posted @ 2020-03-30 17:30 天梯小蔡 阅读(823) 评论(0) 推荐(0) 编辑
摘要: https://www.nihaoshijie.com.cn/index.php/archives/698/ 阅读全文
posted @ 2020-03-12 19:29 天梯小蔡 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 废话不多说 直接上代码 public function index2(){ $pipe1 = function ($payload, \Closure $next) { $payload = $payload + 1; return $next($payload); }; $pipe2 = func 阅读全文
posted @ 2020-02-06 13:56 天梯小蔡 阅读(212) 评论(0) 推荐(0) 编辑
摘要: require 一个类后(带命名空间的) new的时候 需要加 左斜杠就是 (\) 如果用了use 这个类后 就可以直接new 这个类了 第一个是1.php文件 <?php /** *文件描述 */ namespace zhufq; class Test{ public function index 阅读全文
posted @ 2020-02-04 18:17 天梯小蔡 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 用的easywechat框架 1、H5 支付 方式 1.先生成配置 2.统一下单 阅读全文
posted @ 2020-01-16 16:11 天梯小蔡 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 这是一个多功能的 阅读全文
posted @ 2020-01-07 13:12 天梯小蔡 阅读(113) 评论(0) 推荐(0) 编辑
摘要: system()$last_line = system('ls', $return_var);system() 会将输出内容直接印出, 所以若于网页, 会将所有回传内容都显示于页面上.$last_line: 只能取得最后一行的内容$return_var: 取得系统状态回传码 exec()exec(' 阅读全文
posted @ 2019-12-25 13:41 天梯小蔡 阅读(934) 评论(0) 推荐(0) 编辑
摘要: 绑定服务到容器用bind app()->bind('mytest',function($c,$a) { return $a; }); app()->make('mytest',['1213','fsadafds'])$a 对应make的 第二参数数组 阅读全文
posted @ 2019-12-23 13:33 天梯小蔡 阅读(736) 评论(0) 推荐(0) 编辑