Reputation:
When I tried to download larvael 5.x projects from github and tried to use it
I got these two errors :
Warning: require(C:\wamp\www\laravelshop\vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php): failed to open stream: No such file or directory in C:\wamp\www\laravelshop\vendor\composer\autoload_real.php on line 54
Fatal error: require(): Failed opening required 'C:\wamp\www\laravelshop\vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php' (include_path='.;C:\php\pear') in C:\wamp\www\laravelshop\vendor\composer\autoload_real.php on line 54
Is there anything I need to modify first after downloading any project , before using it ?
Upvotes: 0
Views: 323
Reputation: 1069
1) Add your php.exe to environment variable windows.
2) Download composer: https://getcomposer.org/download/
3) Create project typing: php composer.phar create-project --prefer-dist laravel/laravel projectname
Upvotes: 0
Reputation: 616
You need autoload.php
for library/dependency inclusion of Laravel. Please go into root directory and run composer install
(Provided that composer is installed in your system).
Upvotes: 1