★ Making sure Laravel's debug mode is always disabled in production

1 · Freek Van der Herten · Jan. 22, 2024, 9:33 a.m.
Recently, people started talking about a malware called “Androxgh0st” specifically targeting Laravel apps. In a recent edition of Securing Laravel, Stephen Rees-Carter wrote a good explanation of how it works. The malware targets apps with APP_DEBUG set to true. When enabled, Laravel will give detailed error messages, and some security features will be disabled. In production, you always want this value to be set to false. You can make sure it's always set to' false' using Oh Dear’s application ...