上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 83 下一页
摘要: 一,相关文档: 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 刘宏缔的架构森林 阅读(5) 评论(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 刘宏缔的架构森林 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 一,相关的文档: https://learnku.com/docs/laravel/10.x/scheduling/14875 二,php代码: 1,创建command: liuhongdi@lhdpc:/data/laravel/dignews$ php artisan make:command 阅读全文
posted @ 2023-10-22 10:37 刘宏缔的架构森林 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/errors/14857#9e8f93 二,php代码: 1,代码: 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 阅读全文
posted @ 2023-10-22 10:32 刘宏缔的架构森林 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 一,参考文档: https://learnku.com/docs/laravel/10.x/database/14882#09ddab 二,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 28 阅读全文
posted @ 2023-10-21 08:57 刘宏缔的架构森林 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 一,文档地址: https://learnku.com/docs/laravel/10.x/configuration/14836#701998 二,设置 1,.env中关于调试的默认值: APP_DEBUG=true 2,关闭调试 APP_DEBUG=false 说明:刘宏缔的架构森林—专注it技 阅读全文
posted @ 2023-10-21 08:55 刘宏缔的架构森林 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/deployment/14840 二, 配置nginx 1,站点文件 server { listen 80; #listen [::]:80; server_name dig.lhdtest.com; roo 阅读全文
posted @ 2023-10-21 08:53 刘宏缔的架构森林 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 一,php代码 修改routes/web.php 原代码: Route::get('/', function () { return view('welcome'); }); 修改后 Route::get('/', function () { $appName = env('APP_NAME'); 阅读全文
posted @ 2023-10-21 08:51 刘宏缔的架构森林 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 一,相关文档: 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 刘宏缔的架构森林 阅读(17) 评论(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 刘宏缔的架构森林 阅读(8) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 83 下一页