增加 N + 1 检测

This commit is contained in:
iVampireSP.com 2022-11-26 20:21:00 +08:00
parent 8a9044bb60
commit 76336f935f
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 68 additions and 1 deletions

View File

@ -25,6 +25,7 @@
"yansongda/laravel-pay": "~3.2.0"
},
"require-dev": {
"beyondcode/laravel-query-detector": "^1.6",
"fakerphp/faker": "^1.9.1",
"jetbrains/phpstorm-attributes": "^1.0",
"laravel/pint": "^1.0",

68
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "23878130d9df24ca7447ac251b904417",
"content-hash": "4753398c786d748ab94e8601f781d93a",
"packages": [
{
"name": "brick/math",
@ -8437,6 +8437,72 @@
}
],
"packages-dev": [
{
"name": "beyondcode/laravel-query-detector",
"version": "1.6.0",
"source": {
"type": "git",
"url": "https://github.com/beyondcode/laravel-query-detector.git",
"reference": "8261d80c71c97e994c1021fe5c3bd2a1c27106fc"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/beyondcode/laravel-query-detector/zipball/8261d80c71c97e994c1021fe5c3bd2a1c27106fc",
"reference": "8261d80c71c97e994c1021fe5c3bd2a1c27106fc",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
"php": "^7.1 || ^8.0"
},
"require-dev": {
"laravel/legacy-factories": "^1.0",
"orchestra/testbench": "^3.0 || ^4.0 || ^5.0 || ^6.0",
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"BeyondCode\\QueryDetector\\QueryDetectorServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"BeyondCode\\QueryDetector\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Marcel Pociot",
"email": "marcel@beyondco.de",
"homepage": "https://beyondcode.de",
"role": "Developer"
}
],
"description": "Laravel N+1 Query Detector",
"homepage": "https://github.com/beyondcode/laravel-query-detector",
"keywords": [
"beyondcode",
"laravel-query-detector"
],
"support": {
"issues": "https://github.com/beyondcode/laravel-query-detector/issues",
"source": "https://github.com/beyondcode/laravel-query-detector/tree/1.6.0"
},
"time": "2022-02-12T16:23:40+00:00"
},
{
"name": "doctrine/instantiator",
"version": "1.4.1",