08 2020 档案

摘要:1、创建一个命令 php artisan make:command TestCommand 执行成功后会提示: Console command created successfully. 生成了一个新的命令文件 App\Console\Commands\TestCommand.php <?php n 阅读全文
posted @ 2020-08-28 14:07 七彩鱼丸 阅读(3752) 评论(0) 推荐(0) 编辑
摘要:修改镜像源:改为阿里云镜像 composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ 报错:Content-Length mismatch, received 523324 bytes out of 阅读全文
posted @ 2020-08-26 17:56 七彩鱼丸 阅读(217) 评论(0) 推荐(0) 编辑
摘要:直接打印 use Log; use DB; DB::connection()->enableQueryLog(); Log::info(DB::getQueryLog()); //print_r($orm->toSql());print_r($orm->getBindings());exit; \D 阅读全文
posted @ 2020-08-26 10:35 七彩鱼丸 阅读(2587) 评论(0) 推荐(0) 编辑
摘要:场景:php默认的环境变量不是我们实际工作中想要的 执行命令:which php 查看默认的php指向的目录 : /usr/bin/php 修改· ~/.bash_profile 文件 添加php环境目录 export PATH="/Applications/MxSrvs/bin/php/bin:$ 阅读全文
posted @ 2020-08-18 15:05 七彩鱼丸 阅读(488) 评论(0) 推荐(0) 编辑
摘要:memcache的安装 下载地址:https://github.com/websupport-sk/pecl-memcache/archive/php7.zip wget https://github.com/websupport-sk/pecl-memcache/archive/php7.zip 阅读全文
posted @ 2020-08-15 11:26 七彩鱼丸 阅读(521) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示