Hello friends, as I told you about the version of laravel, now I will tell you how to install a project folder in laravel. Let me tell you step by step, let’s go.
Step: -1 First of all, you will install composer to install composer. You can install composer by clicking https://getcomposer.org/download/ and Composer-Setup.exe.
Step :-2 After installing the composer, after you go to the folder in which you want to install your project, open the cmd on there.
c >xampp >htdocs >projectfoldername You can go inside and open it.
Step-:3 Now after installtion, you now have to run 1 command to transfer the project file inside the folder. Different commands are run for every version, so come know. Which commands are run for which version?
Command run for laravel 4.2—–>composer create-project laravel/laravel {directory} 4.2 –prefer-dist
Command run for laravel 5.0—–>composer create-project laravel/laravel {directory} “5.0.*” –prefer-dist
Command run for laravel 5.1—–>composer create-project laravel/laravel blog “5.1.*”
Command run for laravel 5.2—–>composer create-project –prefer-dist laravel/laravel blog “5.2.*”
Command run for laravel 5.3—–>composer create-project –prefer-dist laravel/laravel blog “5.3.*”
Command run for laravel 5.4—–>composer create-project –prefer-dist laravel/laravel blog “5.4.*”
Command run for laravel 5.5—–>composer create-project –prefer-dist laravel/laravel blog
Command run for laravel 5.6—–>composer create-project –prefer-dist laravel/laravel blog
Now I will tell you the next part of how to make a database connection in Laravel, for this, you can click on the link given below.