voyager安装

Installation Steps1. Require the PackageAfter creating your new Laravel application you can include the Voyager package with the following command:$composer require tcg/voyager 2. Add the DB Credenti

- 阅读全文 -

MYSQL 连接常见错误

"HY000"是服务器的一般错误(请参见服务器错误代码和消息(在MySQL文档中)."2002"是MySQL客户端错误代码,表示"无法通过套接字连接到本地MySQL服务器"(请参阅​​(客户端错误代码和消息(在MySQL文档中).特定于驱动程序的错误代码和消息("php_network_getaddresses:getaddrinfo失败:名称或服务未知")告诉您PDO无法解析主机名.

- 阅读全文 -

Laravel 8.* 清除缓存命令

清除缓存:php artisan cache:clear清除路由缓存:php artisan route:cache清除视图缓存:php artisan view:clear清除配置缓存:php artisan config:cache您也可以在路由中调用Artisan::call清除命令缓存。因此您可以像下面这样创建路由:Route::get('/clear-cache-all', functi

- 阅读全文 -

PHP8学习笔记1

php输出:1.echo 单行或多行输出2.print 单行输出3.var_dump 可以打印数据类型和值,测试时使用4.print_r 打印数组,不带类型连接符”.“1.两个变量连接2.一个变量与字符串连接3.一个变量与整型,必须在整型的前面增加空格变量命名法1.下划线命名法2.小驼峰命名法3.大驼峰命名法数据类型1.布尔型(Boolean):true 或 false2.整型(Integer):

- 阅读全文 -