上一页 1 ··· 88 89 90 91 92 93 94 95 96 ··· 169 下一页
摘要: 一,php代码: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 public function home(Request $request){ //默认连接 DB::enableQueryLog(); $modelNews = 阅读全文
posted @ 2023-10-24 08:41 刘宏缔的架构森林 阅读(265) 评论(0) 推荐(0)
摘要: 一,相关文档 https://learnku.com/docs/laravel/10.x/database/14882#2cd405 二,php代码 1,编辑.env DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=gon 阅读全文
posted @ 2023-10-24 08:31 刘宏缔的架构森林 阅读(47) 评论(0) 推荐(0)
摘要: 一,相关文档 https://learnku.com/docs/laravel/10.x/middleware/14846 二,php代码 1,middleware 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 < 阅读全文
posted @ 2023-10-23 14:19 刘宏缔的架构森林 阅读(114) 评论(0) 推荐(0)
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/http-tests/14896 二,php代码: 1,创建test程序 liuhongdi@lhdpc:/data/laravel/dignews$ php artisan make:test NewsTe 阅读全文
posted @ 2023-10-23 12:35 刘宏缔的架构森林 阅读(62) 评论(0) 推荐(0)
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/blade/14852 二,创建controller和view 1,创建controller liuhongdi@lhdpc:/data/laravel/dignews$ php artisan make:c 阅读全文
posted @ 2023-10-23 08:32 刘宏缔的架构森林 阅读(35) 评论(0) 推荐(0)
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/routing/14845 二,查看所有注册的路由 1,查看路由: liuhongdi@lhdpc:/data/laravel/dignews$ php artisan route:list GET|HEAD 阅读全文
posted @ 2023-10-23 08:28 刘宏缔的架构森林 阅读(55) 评论(0) 推荐(0)
摘要: 一,相关文档 https://learnku.com/docs/laravel/10.x/artisan/14859 二,php代码 1,创建command liuhongdi@lhdpc:/data/laravel/dignews$ php artisan make:command Cart IN 阅读全文
posted @ 2023-10-23 08:25 刘宏缔的架构森林 阅读(151) 评论(0) 推荐(0)
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/providers/14843 二,php代码: 1,业务代码: App\extend\mall\GoodsInterface.php 1 2 3 4 5 6 7 <?php namespace App\ex 阅读全文
posted @ 2023-10-22 10:42 刘宏缔的架构森林 阅读(26) 评论(0) 推荐(0)
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/container/14842 二,php代码: 假设我们有两种商品:虚拟商品如账号,实体商品如手办需要销售 1,App\extend\mall\GoodsInterface.php 1 2 3 4 5 6 阅读全文
posted @ 2023-10-22 10:40 刘宏缔的架构森林 阅读(21) 评论(0) 推荐(0)
摘要: 一,启动与退出: liuhongdi@lhdpc:/data/laravel/dignews$ php artisan tinker Psy Shell v0.11.22 (PHP 8.1.1 — cli) by Justin Hileman > exit INFO Goodbye. 二,查询数据 阅读全文
posted @ 2023-10-22 10:38 刘宏缔的架构森林 阅读(72) 评论(0) 推荐(0)
上一页 1 ··· 88 89 90 91 92 93 94 95 96 ··· 169 下一页