Dotenv is the library that parses the .env file for laravel, so it would be one of the first things needed by the framework. Maybe composer's autoloader is messed up.
Does composer dump-autoload --no-scripts help?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello everyone,
I'm trying to push an update to my site but I'm getting this error on my site and in forge:
Fatal error: Class 'Dotenv' not found in /home/forge/ipgeo.io/bootstrap/cache/compiled.php on line 1980
Yeah, uninstalling and reinstalling the repository fixed the issue.
Please or to participate in this conversation.