Reputation: 295
I'm using Laravel and want to display render time / page load time in my web application. Can you help me?
Upvotes: 19
Views: 14184
Reputation: 694
You can use for debugging one of those package: barryvdh/laravel-debugbar or sebklaus/profiler
Upvotes: 0
Reputation: 3428
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.
Upvotes: 6
Reputation: 9883
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
Upvotes: 57