上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 83 下一页
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/validation/14856 二,php代码 1,生成类 liuhongdi@lhdpc:/data/laravel/dignews$ php artisan make:request HomeReque 阅读全文
posted @ 2023-10-20 07:59 刘宏缔的架构森林 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/logging/14858 二,未配置日志: php代码: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 <?php namespace App\Http\Controller 阅读全文
posted @ 2023-10-20 07:55 刘宏缔的架构森林 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/middleware/14846 二,创建middleware liuhongdi@lhdpc:/data/laravel/dignews$ php artisan make:middleware Check 阅读全文
posted @ 2023-10-20 07:53 刘宏缔的架构森林 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/middleware/14846 二,创建middleware liuhongdi@lhdpc:/data/laravel/dignews$ php artisan make:middleware Check 阅读全文
posted @ 2023-10-20 07:50 刘宏缔的架构森林 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 一,创建exception: liuhongdi@lhdpc:/data/laravel/dignews$ php artisan make:exception ApiException INFO Exception [app/Exceptions/ApiException.php] created 阅读全文
posted @ 2023-10-19 09:08 刘宏缔的架构森林 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/errors/14857#87364d 二,php代码: 1,app\exceptions\Handler.php 增加以下一段: 1 2 3 4 5 6 7 8 9 10 11 //重写render pub 阅读全文
posted @ 2023-10-19 08:56 刘宏缔的架构森林 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/routing/14845#ad9737 二,php代码 在routes/web.php中添加以下代码: 1 2 3 4 5 6 7 8 //配置回退路由,起兜底作用 Route::fallback(func 阅读全文
posted @ 2023-10-19 08:53 刘宏缔的架构森林 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 一,参考文档 https://learnku.com/docs/laravel/10.x/responses/14850 二,php代码 1,App\extend\result\Result.php 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 阅读全文
posted @ 2023-10-19 08:47 刘宏缔的架构森林 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/requests/14849#e16c06 二,php代码: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 阅读全文
posted @ 2023-10-19 07:53 刘宏缔的架构森林 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 一,添加配置数据 1,在.env中添加: FILE_HOST="https://file.lhd.com" FILE_BASE_DIR="/web/site/file/html/image" 2,在config目录下新建文件: image.php,内容: <?php return [ 'defaul 阅读全文
posted @ 2023-10-18 08:23 刘宏缔的架构森林 阅读(70) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 83 下一页