上一页 1 ··· 142 143 144 145 146 147 148 149 150 ··· 221 下一页
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/redis/14887 二,php代码 1,配置.env 使用默认的设置: REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 2,control 阅读全文
posted @ 2023-10-21 08:48 刘宏缔的架构森林 阅读(71) 评论(0) 推荐(0)
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/queries/14883 二,php代码: 1,配置.env DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=gonews DB 阅读全文
posted @ 2023-10-20 08:01 刘宏缔的架构森林 阅读(71) 评论(0) 推荐(0)
摘要: 一,相关文档: 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:58 刘宏缔的架构森林 阅读(152) 评论(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 刘宏缔的架构森林 阅读(200) 评论(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 刘宏缔的架构森林 阅读(193) 评论(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:49 刘宏缔的架构森林 阅读(190) 评论(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:07 刘宏缔的架构森林 阅读(150) 评论(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:55 刘宏缔的架构森林 阅读(158) 评论(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 刘宏缔的架构森林 阅读(79) 评论(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 刘宏缔的架构森林 阅读(397) 评论(0) 推荐(0)
上一页 1 ··· 142 143 144 145 146 147 148 149 150 ··· 221 下一页