I'm using Laravel and want to display render time / page load time in my web application. Can you help me?
Laravel defines a LARAVEL_START
constant which contains the microtime of when the framework started booting. You could use that to calculate the difference.
You can use the following
This page took {{ (microtime(true) - LARAVEL_START) }} seconds to render
I would recommend barryvdh/laravel-debugbar
package which can give you plenty of informations about request including executed queries, various load times and many more.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With