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

前端 未结 9 1325
梦毁少年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:16

    Just make your storage folder writable. This can be found in your app directory

    In your terminal use this command

    chmod +w <directory> or chmod a+w <directory>
    

    Make sure you navigate to the directory containing the directory you want to make writable or you point to that path.

    0 讨论(0)
  • 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
    
    0 讨论(0)
  • 2020-12-15 17:20

    This error indicates it can not find "autoload.php" under the vendor folder.

    Make sure the vendor folder is generated by running the "composer install" command and the autoload.php file also created.

    0 讨论(0)
提交回复
热议问题