I have clone using GIT a project and can't access my project in local?

477 Views Asked by At

I got following error in my browser

Fatal error Uncaught Error: Class 'Illuminate\Foundation\Application' not 
found in C:\xampp\htdocs\app\bootstrap\app.php:14 Stack trace: #0 
C:\xampp\htdocs\app\public\index.php(22): require() #1 {main} thrown in 
C:\xampp\htdocs\app\bootstrap\app.php on line 14
3

There are 3 best solutions below

0
ssi-anik On BEST ANSWER

You cloned the repository. But the repository doesn't have the required packages.

  • cd project
  • composer install (or composer update)
  • composer dump-autoload -o

Run the project, and it shouldn't show these errors.

1
ARR On

Then you didn't actually clone it successfully or it isn't in the path you expect (C:\xampp\htdocs\app\bootstrap\app.php:14).

If you navigate to that path, what do you see?

0
Kiran Patel On

Sometimes its happened when you do not push your composer.lock file.

composer dump-autoload

composer install --no-scripts

make sure everything works now as expected (no errors!)

composer update