1

I have several issue to running my code. The last thing that still not solve is

Fatal error: Class 'Illuminate\Foundation\Application' not found

I do

composer update --no-scripts

but still have the same issue

ahm
  • 107
  • 2
  • 9
  • Does this answer your question? [Fatal error: Class 'Illuminate\Foundation\Application' not found](https://stackoverflow.com/questions/29764368/fatal-error-class-illuminate-foundation-application-not-found) – DarkBee Mar 09 '22 at 14:52
  • Did you install laravel? Or did you run composer install? – gguney Mar 09 '22 at 15:12
  • I run composer install dude – ahm Mar 09 '22 at 15:13
  • Are you including the Composer autoloader? `require __DIR__ . '/vendor/autoload.php';` (See https://getcomposer.org/doc/01-basic-usage.md#autoloading) – md2perpe Mar 09 '22 at 15:29
  • @md2perpe, Do I need to write: `php composer.phar update` ? – ahm Mar 09 '22 at 15:48
  • @md2perpe terminal give me `Could not open input file: composer.phar` – ahm Mar 09 '22 at 15:50
  • I don't know whether you need to update Composer. I know that you need to include the Composer autoloader in the main script. Are you doing that? – md2perpe Mar 09 '22 at 16:33
  • @md2perpe That should be handled by Laravel – brombeer Mar 09 '22 at 16:35
  • I'd remove the `vendor` folder and `composer.lock` and run `composer install` again. Make sure there are no errors – brombeer Mar 09 '22 at 16:36

0 Answers0