When I create a project in Laravel this one comes in version 5.5, however I'm following a tutorial and the error code to execute.
I think it's because in the tutorial, version 5.2 of Laravel is used.
I then decided to create a project with version 5.2 by reading this topic I arrived at this command:
composer create-project laravel/laravel apiLaravel "5.2"
And at first it seemed to be all right, up to Fatal error
displayed at the end.
D:\wamp64\www\laravel>composer create-project laravel/laravel apiLaravel "5.2"
Installing laravel/laravel (v5.2.0)
- Installing laravel/laravel (v5.2.0): Downloading (100%)
Created project in apiLaravel
> php -r "copy('.env.example', '.env');"
> php artisan clear-compiled
Warning: require(D:\wamp64\www\laravel\apiLaravel\bootstrap/../vendor/autoload.p
hp): failed to open stream: No such file or directory in D:\wamp64\www\laravel\a
piLaravel\bootstrap\autoload.php on line 17
Fatal error: require(): Failed opening required 'D:\wamp64\www\laravel\apiLarave
l\bootstrap/../vendor/autoload.php' (include_path='.;C:\php\pear') in D:\wamp64\
www\laravel\apiLaravel\bootstrap\autoload.php on line 17
Script php artisan clear-compiled handling the pre-update-cmd event returned wit
h error code 255
Is it missing some configuration or something like this?