Why “no such file or directory … autoload.php” when accessing Laravel app?

前端 未结 9 1341
梦毁少年i
梦毁少年i 2020-12-15 16:48

I am a newbie to Laravel, have been trying to install Laravel, wasted three hours unfortunately didn\'t work. When I access through public directory, I get these errors:

9条回答
  •  长情又很酷
    2020-12-15 17:17

    In Windows CMD I faced similar issue and fixed with this command below. After clone a laravel project from my git repository, there was no /vendor directory (logically). This below command creates fresh new /vendor directory and appropriate autoload.php file inside it.

    composer update --no-scripts
    

提交回复
热议问题