-1

I just started learning Laravel and created a project in it. After creating the project, when I run the project using the command : >php artisan serve. The below error occurs:

PHP Warning:  require(C:\Users\iamvee_k\Desktop\Laravel Projects\ecom-dashboard-backend/vendor/autoload.php): Failed to open stream: No such file or directory in C:\Users\iamvee_k\Desktop\Laravel Projects\ecom-dashboard-backend\artisan on line 18
PHP Fatal error:  Uncaught Error: Failed opening required 'C:\Users\iamvee_k\Desktop\Laravel Projects\ecom-dashboard-backend/vendor/autoload.php' (include_path='.;C:\php\pear') in C:\Users\iamvee_k\Desktop\Laravel Projects\ecom-dashboard-backend\artisan:18
Stack trace:
#0 {main}
  thrown in C:\Users\iamvee_k\Desktop\Laravel Projects\ecom-dashboard-backend\artisan on line 18
greybeard
  • 2,249
  • 8
  • 30
  • 66
Afaq Khan
  • 25
  • 7
  • Run `composer install` – miken32 Aug 03 '23 at 21:22
  • did you `cd` to the project folder? – Mr. Kenneth Aug 04 '23 at 00:08
  • did you run php artisan commands inside project folder ? – Mr. Kenneth Aug 04 '23 at 00:09
  • yes @Mr.Kenneth i run this command inside the project folder – Afaq Khan Aug 04 '23 at 06:24
  • were you the one who created this project? or did you git pull this project from somewhere? If you git pull/copied this project from somewhere, run what @miken32 suggested. – Mr. Kenneth Aug 04 '23 at 06:31
  • run `composer install` on the root of your project. – Mr. Kenneth Aug 04 '23 at 06:31
  • you may also need to run `composer dump-autoload` after `composer install` – Mr. Kenneth Aug 04 '23 at 06:33
  • sir i have created new project @Mr.Kenneth – Afaq Khan Aug 04 '23 at 06:52
  • i have installed php then composer then create laravel app, but when i create the app this happen: Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v10.10.0, ..., v10.17.1] require league/flysystem ^3.8.0 -> satisfiable by league/flysystem[3.8.0, ..., 3.15.1]. - league/flysystem[3.3.0, ..., 3.14.0] require league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.0.0, ..., 1.12.0]. etc – Afaq Khan Aug 04 '23 at 06:55
  • Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/254793/discussion-between-afaq-khan-and-mr-kenneth). – Afaq Khan Aug 04 '23 at 06:56

0 Answers0