Lets get it straight. “You want to install Laravel”. With this tutorial, I am starting a Laravel series. My tutorials are short and to the point. So lets get started without any fuss.
Prerequisites
- Download Composer or visit their official website.
- Select “Install Shell Menus” in setup as shown.
- Press Next and point the setup to the php.exe. For example, in my case, it is
D:\xampp\php\php.exe- Download Git
- Download Laravel Installaion Files from Github
Now that you have downloaded and installed Composer and Git, you can now start the Laravel installation process.
Installation of Laravel
- Extract Laravel to the xampp/htdocs folder. These are the installation files.
- Right click on the extracted folder and select Use Composer here. (this is why you installed shell menu with composer)
- A command prompt will open with composer settings. Also note that you will be at your extracted Laravel install
- Type the following command and press Enter. Downloading of Laravel assets will start.
composer install
Laravel is now installed. Now we will create a project.
Create a Project
- Go to Run and type cmd.
- Lets assume that the project we are making is called “codeonion“.
- Type the following command in cmd to make out project:
composer create-project laravel/laravel d:\xampp\htdocs\codeonion- Wait for installation to finish.
A project named “codeonion” is made from Laravel installation. Lets test it.
Testing of new project
- Open your browser.
- Go to the following link
localhost/codeonion/public/- If you see the following then the installation went ok
That is it! Laravel has been installed. In the coming tutorials, I will explain configuration of Laravel and then a project will be made.
Next, learn about laravel complete MVC basic guide HERE!
5 responses to “Laravel Tutorial 1 : Installation in XAMPP”
Hi nice tutorial and I want to inform you that for Advanced Laravel and NodeJS Tutorials – Codes, Study Material, Videos Please visit https://www.readymadecode.com/category/website/laravel/ and Support Me.
it.s awesome post… I am so helpful for your review..
Hi, your blog is no longer active? I’m waiting for a post here
jual alat kesehatan furniture murah bogor https://aqwilmedica.com/product
This blog is alive. I have made some posts last month on Ubuntu, Rails framework setup on Ubuntu and Microsoft SQL Server 2019 installation in Ubuntu 20.04.
I will return to Laravel 🙂
Shell Menus in Composer is depreciated. Right click use Windows PowerShell instead.