How to install laravel on windows
To install Laravel we need composer dependency tools.
First, you have to install composer(if not installed) https://getcomposer.org/.To check composer is installed or not open a terminal and execute the below command.
terminal and execute the below command.
composer
To install Laravel execute the following command in the terminal.
composer global requires laravel/installer.
The above command installs all dependencies of laravel. It will take some time. After complete the execution of the above command, you can create a laravel project using the following command. laravel new
Ex. laravel new myFstProject
Alternatively, we can use composer to install the laravel project using the following command composer create-project –prefer-dist laravel/laravel ex. composer create-project –prefer-dist laravel/laravel myFstProject you can run your project using the following command PHP artisan serve
Note:
PHP atisan
This command shows the list of all laravel related commands laravel uses a blade templating engine for view Blade is a laravel templating engine
Other
For managing dependencies, Laravel uses composer. Make sure you have a Composer installed on your system before you install Laravel. In this chapter, you will see the installation process of Laravel.
You will have to follow the steps given below for installing Laravel onto your system −
Step 1 − Visit the following URL and download composer to install it on your system.
https://getcomposer.org/download/
Step 2 − After the Composer is installed, check the installation by typing the Composer command in the command prompt as shown in the following screenshot.
Step 3 − Create a new directory anywhere in your system for your new Laravel project. After that, move to the path where you have created the new directory and type the following command there to install Laravel.
composer create-project laravel/laravel –-prefer-dist
Now, we will focus on the installation of version 5.7. In Laravel version 5.7, you can install the complete framework by typing the following command −
composer create-project laravel/laravel test dev-develop
The output of the command is as shown below −
The Laravel framework can be directly installed with develop branch which includes the latest framework.
Step 4 − The above command will install Laravel in the current directory. Start the Laravel service by executing the following command.
PHP artisan server
Step 5 − After executing the above command, you will see a screen as shown below −
Step 6 − Copy the URL underlined in grey in the above screenshot and open that URL in the browser. If you see the following screen, it implies Laravel has been installed successfully.
Visit My All Post: www.vkprogramming.com
People also ask for install laravel on windows
How do I download and install laravel,
How do I install the latest version of laravel,
How can I download the laravel app,
How do I install PHP artisan service.