'How to change the "Maximum execution time screen" on Laravel and show a custom message instead
My application has a complex script that when some type of error happens it exceeds the maximum execution time instead of returning the error, that It's okay for this project, but because the try{}catch($e Exception)
of PHP does not work and when this error happens I have to see the standard debug screen: Symfony\Component\ErrorHandler\Error\FatalError Maximum execution time of 60 seconds exceeded
. I know that if I turn the APP_DEBUG
on .env
: false
I can change the 500 error screen, but I don't want that.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|