Why "no such file or directory ... autoload.php" when accessing Laravel app?
I had same problem on Windows(Also works for Mac).
Solution:
- Install composer
- Open cmd
- Navigate to your laravel application root
- Run
composer install
command in cmd
Done!
This message occurs for Laravel's dependencies.
If never run composer install
in your project then run this command on the terminal.
Else run composer update --no-scripts
. All Laravel dependencies will download.
Did you install Laravel's dependencies? When you unzip the framework in your work environment (i.g. htdocs) you must install the necesary dependencies with the command php composer.phar install
(assuming you have installed composer and git). When that is done, you will be able to see the home page of the framework.