摘要:
一,相关文档: 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 阅读全文
摘要:
一,参考文档: 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 阅读全文
摘要:
一,文档地址: https://learnku.com/docs/laravel/10.x/configuration/14836#701998 二,设置 1,.env中关于调试的默认值: APP_DEBUG=true 2,关闭调试 APP_DEBUG=false 说明:刘宏缔的架构森林—专注it技 阅读全文
摘要:
一,相关文档: https://learnku.com/docs/laravel/10.x/deployment/14840 二, 配置nginx 1,站点文件 server { listen 80; #listen [::]:80; server_name dig.lhdtest.com; roo 阅读全文
摘要:
一,php代码 修改routes/web.php 原代码: Route::get('/', function () { return view('welcome'); }); 修改后 Route::get('/', function () { $appName = env('APP_NAME'); 阅读全文
摘要:
一,相关文档: 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 阅读全文
摘要:
一,相关文档: 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 阅读全文
摘要:
一,相关文档: https://learnku.com/docs/laravel/10.x/validation/14856 二,php代码 1,生成类 liuhongdi@lhdpc:/data/laravel/dignews$ php artisan make:request HomeReque 阅读全文
摘要:
一,相关文档: 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 阅读全文
摘要:
一,相关文档: https://learnku.com/docs/laravel/10.x/middleware/14846 二,创建middleware liuhongdi@lhdpc:/data/laravel/dignews$ php artisan make:middleware Check 阅读全文