
php
ragerhino
犀牛
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PHP处理 EXCEL 日期格式
PHP 处理 Excel 日期格式原创 2021-12-04 11:31:21 · 682 阅读 · 0 评论 -
TP5 相关操作
TP 记录数组日志:方法一: $arr = print_r([1,2,4], true); Log::write($arr);方法二: $arr = var_export([1,2,3], true); Log::write($arr);原创 2020-09-08 11:33:28 · 154 阅读 · 0 评论 -
TP5 验证器
验证器定义一个 \app\index\validate\User 验证器类用于 User 的验证: namespace app\index\validate uses think\Validate; class User extends Validate { protected $rule = [ 'name' => 'require|max:25', 'email' => 'email', ]; protected $message = [ 'name.r原创 2020-05-14 16:45:43 · 335 阅读 · 0 评论 -
Composer install 报错:laravel/horizon v1.4.3 requires ext-pcntl * -> the requested PHP extension pcntl
错误提示:laravel/horizon v1.4.3 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system解决办法:在 composer.json 中增加“config”: {“preferred-install”: “dist”,“sort-packages”:...转载 2019-07-30 12:29:28 · 2816 阅读 · 2 评论 -
php artisan migrate 报错: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was to
执行php artisan migrate 报错 :Illuminate\Database\QueryException : SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table user...转载 2019-07-30 12:38:24 · 670 阅读 · 0 评论 -
laravel配置路由出现404解决办法
问题分析一般出现这种情况的都是apache/nginx配置出现问题nginx解决办法在location里面加上 try_files $uri $uri/ /index.php?$query_string;如果配置文件中存在 try_files $uri $uri/ =404;需要将它注释掉或者删掉,否则会报错...转载 2019-07-30 12:51:13 · 1752 阅读 · 0 评论 -
windows 下git出现警告:warning: LF will be replaced by CRLF in test1.txt. The file will have its original
1.问题git在执行git add命令时出现以下警告:warning: LF will be replaced by CRLF in test1.txt. The file will have its original line endings in working directory2.原因因为Git的换行符检查功能。LF是linux下的换行符,而CRLF是enter + 换行。...转载 2019-08-05 09:35:31 · 3046 阅读 · 0 评论