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:
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.
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:
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*"
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 cd var/www/html/blog // for windows system cd c:/xampp/htdocs/blog
Start development server
php artisan serve
The final step, go to your browser and type the below-given URL into your browser:
http://localhost:8000 OR http://localhost/blog/public/
This tutorial idea has taken from this https://laravel.com/docs/7.x/installation