Level 42
You need to debug and check your DB query at your home page loading time. You can use https://github.com/barryvdh/laravel-debugbar package for debug process.
Best of luck!
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
Currently i am facing issue that on home page loading Laravel creates database connection even without hitting any query to database. Last week we got DDOS attack on website and our database went down, cause of this our users were unable to access our website.
So please help me to prevent database connection without hitting any query
Thanks
Please or to participate in this conversation.