摘要: vituralbox挂载本地windows文件夹命令:sudo /sbin/mount.vboxsf docker_on_windows /mnt/ 阅读全文
posted @ 2022-06-08 00:08 张小牛1024 阅读(21) 评论(0) 推荐(0) 编辑
摘要: laravel使用微软azure存储。引入包"matthewbdaly/laravel-azure-storage": "^1.6", config文件夹里给filesystems添加配置项 'azure' => [ 'driver' => 'azure', 'name' => env('AZURE 阅读全文
posted @ 2022-03-30 15:28 张小牛1024 阅读(99) 评论(0) 推荐(0) 编辑
摘要: if (!-e $request_filename){ rewrite ^/(.*)$ /index.php/$1 last; } 完整server代码 server { listen 80; server_name www.testw.com; root "D:\phpStudy\PHPTutor 阅读全文
posted @ 2021-05-14 11:13 张小牛1024 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 记一次git克隆失败,以下是我的处理方案 fatal unable to get credential storage lock File exists 解决方法 把C盘,用户文件夹下的 .git-credentials.lock 文件删掉 可能原因 可能是因为之前提交的时候强制中断导致的git生成 阅读全文
posted @ 2021-05-14 10:16 张小牛1024 阅读(1595) 评论(0) 推荐(0) 编辑
摘要: 记录一下 转载自:https://blog.csdn.net/beyond__devil/article/details/62230610 阅读全文
posted @ 2021-04-26 14:15 张小牛1024 阅读(46) 评论(0) 推荐(0) 编辑
摘要: //入参为远程图片地址,如:https:://www.baidu.com/test123.jpg//代码如下:public function getImage(Request $request) { $url = request('url'); if(empty($url)){ return Too 阅读全文
posted @ 2020-12-02 14:15 张小牛1024 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 经常会忘,还是记下来吧~ SELECT SUM(if(category=1,size,0)) ,COUNT(if(category=1,true,null)) FORM t_file; 解析: 1. sum(if(category=1,size,0))中 sum函数返回一个值类型的数值,如果cate 阅读全文
posted @ 2020-11-24 14:39 张小牛1024 阅读(364) 评论(0) 推荐(0) 编辑
摘要: mark一下 use Illuminate\Pagination\LengthAwarePaginator; public function index(Request $request){ $list =[...]; //当前页数 默认1 $page = $request->page ?: 1; 阅读全文
posted @ 2019-12-24 10:50 张小牛1024 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 这是个好东西呀,原文链接:https://blog.csdn.net/TXX_c/article/details/83302738 阅读全文
posted @ 2019-11-28 16:55 张小牛1024 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 把路由请求方式改成any,CSRF加入该路由地址 转帖自:https://blog.csdn.net/I_am_VIP123/article/details/78148607 阅读全文
posted @ 2019-11-15 14:00 张小牛1024 阅读(981) 评论(0) 推荐(0) 编辑