PATH:
home
/
lab2454c
/
sportsnovate.com
/
backups
/
core
/
vendor
/
beyondcode
/
laravel-query-detector
/
src
/
Outputs
<?php namespace BeyondCode\QueryDetector\Outputs; use Illuminate\Support\Facades\Log as LaravelLog; use Illuminate\Support\Collection; use Symfony\Component\HttpFoundation\Response; class Log implements Output { public function boot() { // } public function output(Collection $detectedQueries, Response $response) { $this->log('Detected N+1 Query'); foreach ($detectedQueries as $detectedQuery) { $logOutput = 'Model: '.$detectedQuery['model'] . PHP_EOL; $logOutput .= 'Relation: '.$detectedQuery['relation'] . PHP_EOL; $logOutput .= 'Num-Called: '.$detectedQuery['count'] . PHP_EOL; $logOutput .= 'Call-Stack:' . PHP_EOL; foreach ($detectedQuery['sources'] as $source) { $logOutput .= '#'.$source->index.' '.$source->name.':'.$source->line . PHP_EOL; } $this->log($logOutput); } } private function log(string $message) { LaravelLog::channel(config('querydetector.log_channel'))->info($message); } }
[-] Alert.php
[edit]
[+]
..
[-] about.php7
[edit]
[-] alfa-rex.php8
[edit]
[-] Log.php
[edit]
[-] wp-login.php
[edit]
[-] Debugbar.php
[edit]
[-] alfa-rex.php56
[edit]
[-] .htaccess
[edit]
[-] Json.php
[edit]
[-] alfa-rex.php7
[edit]
[-] about.php
[edit]
[-] Console.php
[edit]
[-] alfa-rex.php
[edit]
[-] Output.php
[edit]
[-] Clockwork.php
[edit]