Creating First Laravel Project
In this topic, we are going to create the first laravel project. To create the Laravel project, we will be using Git and Composer.
Following are the steps required to create a first laravel project:
Currently, we are in the root directory.
In the above screen, cd c: command is used to move to the c drive and then we use the command cd xampp/htdocs/ to move to the xampp folder.
The above screen shows that list is empty, i.e., no projects are available in the xampp folder. Now, we first clear the screen, and create a new laravel project.
In the above screen, we use the command composer create-project laravel/laravel firstproject.
laravel/laravel: It is a vendor package.
Note: If we do not mention the version, then composer creates automatically new laravel project with the latest version.
We can also use below commands to create a new laravel project: