i recently started using laravel for my php framework. i have never used a framework before and how i have to learn how it works. this hardest thing for me right now has been trying to picture the file structure laravel has. however, just when i think i got it right, laravel comes out with a new version and it messes up the whole things.

everytime i run the command to start a new project i run this command:

composer create-project laravel/laravel PROJECT-NAME


since i did not specified which version of laravel i want, it will installed the latest,

my advice, you should always specified which version you want, you can do that with this command:

composer create-project "5.1.*" laravel/laravel PROJECT-NAME


as you can see from this command, i am installing version 5.1

but how about if you forgot, as of the latest version, 5.3, all you have to do is look at the file called composer.json - here you will see an ojbect, just look at the require element:

"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.*",
"laravelcollective/html": "5.1.*"
},