上一页 1 ··· 98 99 100 101 102 103 104 105 106 ··· 179 下一页
摘要: 一,phpexcel官方代码站: https://github.com/PHPOffice/PHPExcel 说明:项目在2019年已经被设置为archived新用户可以使用它的代替项目PhpSpreadsheet来实现我是因为旧代码中使用了这个库才应用它来工作 二,演示代码: 1 2 3 4 5 阅读全文
posted @ 2023-10-30 07:51 刘宏缔的架构森林 阅读(250) 评论(0) 推荐(0)
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/configuration/14836#972c4c 二,用artisan工具实现上线下线 1,下线,进入维护模式 [root@img dignews]# /usr/local/soft/php8.2.5/b 阅读全文
posted @ 2023-10-29 10:34 刘宏缔的架构森林 阅读(131) 评论(0) 推荐(0)
摘要: 一,APP_KEY的作用: 1,用途: 它作为网站的密钥使用,用来保护网站的安全主要用于加密cookie 2,生成APP_KEY: 生成前: APP_KEY= 生成命令: [root@img dignews]# /usr/local/soft/php8.2.5/bin/php artisan key 阅读全文
posted @ 2023-10-29 10:31 刘宏缔的架构森林 阅读(528) 评论(0) 推荐(0)
摘要: 一,相关文档 https://learnku.com/docs/laravel/10.x/blade/14852#918cb6 二,模板: resources/views/layouts/layout.blade.php 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 阅读全文
posted @ 2023-10-29 10:29 刘宏缔的架构森林 阅读(42) 评论(0) 推荐(0)
摘要: 一,相关文档: https://learnku.com/docs/laravel/10.x/eloquent-relationships/14889 二,php代码: 1,model中定义方法 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 阅读全文
posted @ 2023-10-25 07:50 刘宏缔的架构森林 阅读(256) 评论(0) 推荐(0)
摘要: 一,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 刘宏缔的架构森林 阅读(270) 评论(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 刘宏缔的架构森林 阅读(54) 评论(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 刘宏缔的架构森林 阅读(117) 评论(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 刘宏缔的架构森林 阅读(68) 评论(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 刘宏缔的架构森林 阅读(41) 评论(0) 推荐(0)
上一页 1 ··· 98 99 100 101 102 103 104 105 106 ··· 179 下一页