Before we start the laravel installation tutorial. Make sure you have installed on your machine before you install the Laravel framework. In this tutorial, you will learn the installation process of Laravel.
In this tutorial, you will also learn how to install laravel on windows and ubuntu system step by step and also learn how to install laravel specific version.
Just follow the steps given below for installing Laravel in your machine/system:
Step 1 :- Install Composer In your Machine/System
First of all, you need to install the composer. So Visit the following URL and download the composer, then install it into your system/machine.
Step 2 :− Check Composer Install OR NOT
After you have successfully install the composer in your system or machine. Use the below given command to check into your command prompt and check:
Step 3 :− Install Laravel New Setup
Next step, Go to command prompt and type below command to install or download the latest version of laravel:
If you are using an Ubuntu system, So type below command on your command prompt:
If your using windows system, So type below command on your command prompt:
//for install laravel new setup
composer create-project laravel/laravel blog –-prefer-dist
If you want to install laravel specific version, so you can use the below command:
//install laravel specific version
composer create-project laravel/laravel blog "6.x*"
Step 4 :- Start Development Server
After you have successfully installed a laravel new setup in your system. you can use the below command to start the local or development server, so open your command prompt and go to your installed laravel project root directory then type the below command:
First, go to project root directory using the below command
// for ubuntu system
// for windows system
Start development server
php artisan serve
Step 5 :- Run on Browser
The final step, go to your browser and type the below-given URL into your browser: