PATH:
home
/
lab2454c
/
sportsnovate.com
/
backups
/
core
/
vendor
/
beyondcode
/
laravel-query-detector
/
src
/
Outputs
<?php namespace BeyondCode\QueryDetector\Outputs; use Illuminate\Support\Collection; use Symfony\Component\HttpFoundation\Response; use Barryvdh\Debugbar\Facade as LaravelDebugbar; use DebugBar\DataCollector\MessagesCollector; class Debugbar implements Output { protected $collector; public function boot() { $this->collector = new MessagesCollector('N+1 Queries'); if (!LaravelDebugbar::hasCollector($this->collector->getName())) { LaravelDebugbar::addCollector($this->collector); } } public function output(Collection $detectedQueries, Response $response) { foreach ($detectedQueries as $detectedQuery) { $this->collector->addMessage(sprintf('Model: %s => Relation: %s - You should add `with(%s)` to eager-load this relation.', $detectedQuery['model'], $detectedQuery['relation'], $detectedQuery['relation'] )); } } }
[-] 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]