会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
逝火
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
上一页
1
2
3
4
5
6
···
15
下一页
2020年10月29日
限制IP频繁访问
摘要: 用session防止IP频繁访问的方法 //代理IP直接退出 empty($_SERVER['HTTP_VIA']) or exit('Access Denied'); //防止快速刷新 session_start(); $seconds = '3'; //时间段[秒] $refresh = '5'
阅读全文
posted @ 2020-10-29 23:10 逝火
阅读(503)
评论(0)
推荐(0)
编辑
laravel定义不同的日志保存渠道
摘要: laravel定义不同的日志保存渠道 只用在配置文件里加一个配置就可以了 config\logging.php 'aaa' => [ 'driver' => 'daily', 'path' => storage_path('logs/aaa/aaa.log'), 'level' => 'debug'
阅读全文
posted @ 2020-10-29 23:05 逝火
阅读(285)
评论(0)
推荐(0)
编辑
php 数组中的数据处理合集
摘要: PHP 删除数组中的元素 删除数据中的一个元素 unset() 方法 array_splice() 方法 数组的键会自动重新建立索引 删除数组中的多个元素 array_diff() 方法 array_diff_key() 方法 ###### 获取数组中的重复数据 function FetchRepe
阅读全文
posted @ 2020-10-29 23:04 逝火
阅读(299)
评论(0)
推荐(0)
编辑
微信开发中所应有到的问题及链接-php
摘要: 1 微信小程序出现授权异常 The given payload is invalid https://github.com/overtrue/wechat/issues/1312 2 laravel 使用easywechat 对接微信 https://www.jianshu.com/p/82d688
阅读全文
posted @ 2020-10-29 22:51 逝火
阅读(358)
评论(0)
推荐(0)
编辑
2020年10月28日
array 数组-合并,连接-变形转换-的多种方式 php
摘要: 1)PHP合并数组+与array_merge array_merge_recursive 的区别分析 键名为数字 array_merge()不会覆盖掉原来的值,如果数组是数字键名的,则键名会以连续方式重新索引,即后面的值将不会覆盖原来的值,而是附加到后面。 但+合并数组则会把最先出现的值作为最终结果
阅读全文
posted @ 2020-10-28 20:21 逝火
阅读(225)
评论(0)
推荐(0)
编辑
2020年10月26日
memcache 基于laravel下的使用
摘要: 1 环境的安装 win 下环境的安装,参考以下网址【使用了laragon ,只需要开启服务即可】 https://www.cnblogs.com/tyjsjl/p/5572993.html http://www.shuijingwanwq.com/2017/09/11/1892/ http://ww
阅读全文
posted @ 2020-10-26 22:52 逝火
阅读(209)
评论(0)
推荐(0)
编辑
2020年10月11日
laravel 功能及开发扩展
摘要: 1 laravel top10 扩展 https://www.cnblogs.com/summerblue/p/9109256.html 开发辅助扩展: 1》laravel - debug 扩展包 https://xueyuanjun.com/post/2774.html composer requ
阅读全文
posted @ 2020-10-11 20:59 逝火
阅读(341)
评论(0)
推荐(0)
编辑
laravel api开发-dingoapi及原生api
摘要: 手册 https://learnku.com/docs/dingo-api/2.0.0/Installation/1443 https://www.cnblogs.com/zzdylan/p/6002503.html https://www.jianshu.com/p/f915e6020ab2 ht
阅读全文
posted @ 2020-10-11 20:56 逝火
阅读(292)
评论(0)
推荐(0)
编辑
laravel - 路由功能
摘要: 1》 创建控制器 PHP artisan make:controller UserController 资源控制器 php artisan make::controller PostController --resource 创建控制器对应的资源控制器 Route::resource('post',
阅读全文
posted @ 2020-10-11 17:04 逝火
阅读(210)
评论(0)
推荐(0)
编辑
laravel 关联关系2
摘要: 关联关系 两个区别:https://www.cnblogs.com/xuzhengzong/p/8684469.html 关联关系高级分析:https://learnku.com/articles/21372#replies 1 belongsTo使用【一对一关系或一对多,子类使用,关联健在本模型中
阅读全文
posted @ 2020-10-11 13:12 逝火
阅读(106)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
···
15
下一页