elasticsearch+kibana+filebeat+headPlugin配置参考

5-23 3,078 views

参考链接 filebat: https://www.elastic.co/cn/downloads/beats/filebeat https://www.elastic.co/cn/products/beats/filebeat Elastic Stack : https://www...
阅读全文 0

使用.env文件区分不同的线上环境数据库配置

5-21 3,427 views

有时候本地项目和线上项目需要不同的配置文件,这样就用到了.env文件。 1.首先在你的项目根文件夹下创建.env文件 并写入内容 DB_CONNECTION=mysql DB_HOST=12...
阅读全文 0

tp5.1 使用swoole做服务器简单的接口性能测试

5-08 4,152 views

官方测试地址:官方测试 最近在看tp5.1的think-swoole支持,作为替代php-fpm的一种方案,现在简单的用swoole做为http服务器和用传统的php-fpm分别测试下接口...
阅读全文 0

PHP函数学习之——func_get_args

4-27 2,029 views

官方说明 说明 func_get_args ( void ) : array 获取函数参数列表的数组。 该函数可以配合 func_get_arg() 和 func_num_args() 一起使用,从而使得用户自定...
阅读全文 0

Mysql 分页优化

4-14 2,333 views

在系统中需要进行分页的时候,我们通常会使用limit 加上偏移量的方法实现,再加上合适的order by 子句,如果有对应的索引,通常效率会很不错,否则mysql需要...
阅读全文 0

lcobucci/jwt —— 一个轻松生成jwt token的插件

4-09 12,871 views

github: https://github.com/lcobucci/jwt/tree/3.4 1.安装 "lcobucci/jwt": "^3.4"版本 php >= 5.6 OpenSSL Extension // 安装 $ ...
阅读全文 2

laravel/lumen —— API 插件 dingo/api

4-08 2,736 views

文档:https://github.com/dingo/api/wiki/Installation 1.安装 #PHP ^7.1 (However soon to be PHP 7.2) composer require dingo/api #LARAVEL php artisa...
阅读全文 0

guzzle —— Guzzle是一个PHP的HTTP客户端,轻松搞定get、post、分流上传下载大文件、http cookies等等

4-07 4,264 views

官方文档:https://guzzle-cn.readthedocs.io/zh_CN/latest/index.html github: https://github.com/guzzle/guzzle 安装 composer require guzzlehttp/guzz...
阅读全文 0

lumen 自定义接口返回成功失败数据格式

4-07 3,726 views

我的lumen版本,5.8 1.找到 app/Http/Controllers/Controller.php 修改成如下代码: <?php namespace App\Http\Controllers; use Laravel\Lumen\Routi...
阅读全文 0

Failed to clear cache. Make sure you have the appropriate permissions.

4-06 4,713 views

php artisan cache:clear 出现 Failed to clear cache. Make sure you have the appropriate permissions 您最近是否从以前的Laravel版本升级了?该Failed to...
阅读全文 0