Level 30
It won't hit the database if you are not trying to get data from the database (probably using an Eloquent model).
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am wondering is there a easy way to stop DB and sessions for some specific routes. For example, there are some static pages (just blade), that are public, and have a lot of hits. DB and session are not needed there. Why to hit DB for them?
Please or to participate in this conversation.