C
C
chelkaz2016-03-25 16:30:27
Laravel
chelkaz, 2016-03-25 16:30:27

Laravel Is it possible to find out the number of requests to the database on the page?

Is it possible to find out how many resources and requests were spent when creating a view.
Some kind of method, so that you can see the number of requests, which ones are cached, and so on on the desired page.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stanislav Pochepko, 2016-03-25
@DJZT

There is a laravel-debugbar package . There is + a lot more of everything
ps ruhighload ))

D
Dimon3x, 2019-01-07
@Dimon3x

write in the router

DB::listen(function($query) {
    var_dump($query->sql, $query->bindings);
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question