A blog on PHP, JavaScript and more Amit Merchant · June 10, 2020 · ⋆ PHP The usual way of handling the exception is by requiring the catch block to catch the exception (thrown from the try block) to a variable like so. Here, the exception is being catched in the catch block to a variable $e. This variable now holds any information regarding the exception such as exception message, code, trace, and so on.
Follow me on Twitter @amit_merchant Find the extension of files without extension in Laravel Non-capturing exception catches in PHP 8 Constructor Property Promotion in PHP 8 Try not to use ad blockers, please!