Laravel and PHP errors, explained

The Laravel and PHP errors developers hit most, each with its real causes, how to tell which one you have, the fix in code and how to catch it.

Updated View as Markdown

Each page starts with the exact message as Laravel or PHP prints it, lists the causes from most to least common, and shows how to confirm and fix each one. The code runs on Laravel 12 and 13 with PHP 8.3 or later; where the two Laravel versions differ, the page says so.

Every page ends with how to notice the error in production before a user reports it. To see all of your app's exceptions in one list, grouped and counted, see issues.