cirelramos / query-log
此包包含用于将项目laravel中生成的控制台查询发送到控制台的实用工具。
1.0.1
2022-04-09 02:46 UTC
Requires
- php: ^7.4|^8.0
- illuminate/config: ^7.20|^8.19|^9.0
- illuminate/contracts: ^7.20|^8.19|^9.0
- illuminate/database: ^7.20|^8.19|^9.0
- illuminate/http: ^7.20|^8.19|^9.0
This package is auto-updated.
Last update: 2024-09-09 08:35:24 UTC
README
关于
query-log 包用于将查询日志发送到控制台,并带有额外信息和捕获查询 SQL。
安装
在您的 composer.json 中要求 cirelramos/query-log 包,并更新您的依赖项。
composer require cirelramos/query-log
配置
默认设置在 config/query-log.php 中。发布配置以将文件复制到您的自定义配置
php artisan vendor:publish --provider="CirelRamos\QueryLog\Providers\ServiceProvider"
注意:这对于您更改默认配置是必要的。
用法
在 config/app.php 中添加提供者
'providers' => [ CirelRamos\QueryLog\Providers\QueryLogProvider::class, ]
许可证
在 MIT 许可证下发布,请参阅LICENSE。