'Uncaught Error: Class 'Illuminate\Foundation\Application' not found
Could someone tell me what exactly this error is? searched everywhere and I could find some solutions like composer install, composer update,composer update --no-scripts.
I removed the
require __DIR__.'/../vendor/autoload.php';
and replaced it with the
$compiledPath = __DIR__.'/../vendor/compiled.php';
And now I have reached a point where I cant find a better solution, any help would be appreciated.
ttt-desktop:/var/www/html/equity3$ php artisan
PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in /var/www/html/equity3/bootstrap/app.php:14
Stack trace:
#0 /var/www/html/equity3/artisan(24): require_once()
#1 {main}
thrown in /var/www/html/equity3/bootstrap/app.php on line 14
ttt-desktop:/var/www/html/equity3$
I have my project in /var/www/HTML/equity3 and I am unable to run Php artisan serve.
My autoload.php looks like this
// autoload.php @generated by Composer
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit9015d85c021292bc41e4d5a5d1794f3f::getLoader();
Solution 1:[1]
Maybe you did forget to do a composer install . :)
Or maybe something is missing in your composer.json.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Yunnosch |
