In this tutorial, we will be going to see how to download and install Laravel on Windows 10 operating system.
Steps to Install Laravel on Windows 10
Once the above requirements are completed then you can install Laravel by running below command on your cmd.
cd xampp cd htdocs composer create-project --prefer-dist laravel/laravel YourProjectName
Running above command will install the latest version of the Laravel framework on your computer.
Follow the below steps to create a Mysql database.
Laravel has made Database Configuration very easy. To configure your database simply open .env file and update the following information. Note: .env file is found in the root directory of your project.
DB_DATABASE= // name of database that you have created DB_USERNAME= // username of mysql DB_PASSWORD= // password of mysql
To run our Laravel application, cd to your project directory and run below command
php artisan serve
Output: Laravel development server started: <http://127.0.0.1:8000>
Open http://127.0.0.1:8000 URL on the browser to see the app.
Voila!! You have successfully installed and created your first Laravel Project on windows 10.