rm vendor/compiled.php then php artisan optimize ?
You seem to have an old compiled.php file.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Everything working fine locally in homestead, but when i push up to forge through envoyer, i get the following error in one part of application:
production.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'App\Eproduct' not found' in /home/forge/dev.mysite.co.uk/releases/20150821071251/vendor/compiled.php:9843
I can see the file in GIt. There were no deployment errors in envoyer. When i ssh into the site folder, i can see the class. I have completely deleted the site from forge, added it back and redeployed through envoyer and still no luck.
Any suggestions to what it could be would be appreciated.
Thanks
OK, i've finally fixed it after 15 hours of swearing at my computer.
It was due to case sensitivity.
It was because I had. $this->belongsToMany('App\Eproduct'.... instead of $this->belongsToMany('App\EProduct'.
see this link for more details: http://stackoverflow.com/questions/23331124/laravel-composer-not-compliling-all-classes-to-compiled-php
Thanks to all those that helped.
Please or to participate in this conversation.