上一页 1 ··· 107 108 109 110 111 112 113 114 115 ··· 205 下一页
摘要: 一,只包含中文: 'city' => 'required|regex:/^[\x{4e00}-\x{9fa5}]+$/u', 正则表达式 [\x{4e00}-\x{9fa5}] 匹配所有中文字符,其中 \x{4e00} 是中文字符的开始码,\x{9fa5} 是结束码。 u 修饰符用于正则表达式,以支 阅读全文
posted @ 2024-08-07 19:32 刘宏缔的架构森林 阅读(400) 评论(0) 推荐(0)
摘要: 一,代码: 1, 中间件 <?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Response; use App\ext 阅读全文
posted @ 2024-08-07 17:26 刘宏缔的架构森林 阅读(82) 评论(0) 推荐(0)
摘要: 一,报错: {"index":{"_index":"my_office","_id":"48","status":400 ,"error":{"type":"document_parsing_exception","reason":"[1:1123] failed to parse field [p 阅读全文
posted @ 2024-08-06 16:34 刘宏缔的架构森林 阅读(337) 评论(0) 推荐(0)
摘要: 一,使用-u参数指定用户: 1,添加编辑命令时指定用户 # -e : 编辑 # -u : 指定用户名 root@lhdpc:/data/api# crontab -e -u www-data crontab: installing new crontab 2,查看cron中命令时指定用户: # -l 阅读全文
posted @ 2024-08-06 15:29 刘宏缔的架构森林 阅读(1276) 评论(0) 推荐(1)
摘要: 一,真实用户id和有效用户id的区别: 1, 真实用户 ID (RUID) 是启动进程的用户的 ID 2,有效用户 ID (EUID) 是当前执行进程的用户 ID 即:进程启动时的用户id是真实用户 ID (RUID), 但实际执行时为了控制权限会切换为:有效用户 ID 二,代码:切换用户和组的有效 阅读全文
posted @ 2024-08-06 15:05 刘宏缔的架构森林 阅读(139) 评论(0) 推荐(0)
摘要: 一,代码: <?php namespace App\Console\Commands; use Illuminate\Console\Command; class IndexAllCommand extends Command { /** * The name and signature of th 阅读全文
posted @ 2024-08-06 10:18 刘宏缔的架构森林 阅读(50) 评论(0) 推荐(0)
摘要: 一,创建command 1,执行命令 liuhongdi@lhdpc:/data/api$ php artisan make:command IndexAllCommand 2,查看创建的文件: <?php namespace App\Console\Commands; use Illuminate 阅读全文
posted @ 2024-08-06 09:57 刘宏缔的架构森林 阅读(320) 评论(0) 推荐(0)
摘要: 一,判断一个索引库是否存在: $response = $client->indices()->exists(['index' => $this->index_name]); $statusCode = $response->getStatusCode(); var_dump($statusCode) 阅读全文
posted @ 2024-08-05 18:23 刘宏缔的架构森林 阅读(161) 评论(0) 推荐(0)
摘要: 一,代码 fastadmin的前端使用了layui,需要按照layui的写法去写 <div class="panel panel-default panel-intro"> {:build_heading()} <div class="panel-body"> <div id="myTabConte 阅读全文
posted @ 2024-07-31 13:57 刘宏缔的架构森林 阅读(381) 评论(0) 推荐(0)
摘要: 一,官方地址: 1,官方站: https://www.fastadmin.net/ 2,文档地址: https://doc.fastadmin.net/docs/install.html 二,安装: 1,下载: 下载地址: https://www.fastadmin.net/download.htm 阅读全文
posted @ 2024-07-29 13:57 刘宏缔的架构森林 阅读(687) 评论(0) 推荐(0)
上一页 1 ··· 107 108 109 110 111 112 113 114 115 ··· 205 下一页