How to show load time / render time in laravel 4?

Now I'm still using Laravel 4 and want to display load time / load time in my web application. Can you help me?

+8
php laravel laravel-4
source share
3 answers

Laravel defines the LARAVEL_START constant, which contains the micro-time when the initial loading of frames began. You can use this to calculate the difference.

You can use the following

 This page took {{ (microtime(true) - LARAVEL_START) }} seconds to render 
+28
source share

I would recommend the package barryvdh/laravel-debugbar , which can give you a lot of information about the request, including executed requests, various load times and much more.

+4
source share

You can use one of these packages for debugging: barryvdh / laravel-debugbar or sebklaus / profiler

0
source share

All Articles