Tutorial How to Install Laravel 5.7 on XAMPP Windows

| | Tutorial PHP |

Laravel is the most popular PHP framework today, more and more people are using this framework, even developers who are familiar with frameworks such as Codeigniter, Yii, CakePHP and others are moving to Laravel.

Tutorial How to Install Laravel 5.7 on XAMPP Windows
Many companies have started to migrate their systems to Laravel. This is very natural because Laravel does provide many new features that make it easier for developers to manage the project.

On this occasion AllTutorials will discuss how to install Laravel 5.7 on Windows, using XAMPP.

For the record Laravel 5.7 is the latest version when we write this article, and requires PHP version 7.1.3 and above and some extensions to be able to run it. Therefore, make sure you install XAMPP version 7.2.0 and above.

↪ Installing XAMPP on Windows

First we need to download and install XAMPP for Windows on the official apache friends site. Don't forget to download XAMPP version 7.2.0 which contains PHP version 7.1.3 and above.
Installing XAMPP on Windows
Next, install the file that you downloaded earlier, by default XAMPP will be installed in the C:\xampp folder. You can also install it in another location. Next just stay Next until it's finished.
default XAMPP will be installed in the C:\xampp folder
After XAMPP is successfully installed, you can access the XAMPP application to run Apache and MySQL, just click the Start button on both.
XAMPP Control Panel
If the Apache server has been run then you can access the main page at http://localhost on a web browser.
xampp dashboard

↪ Composer

After you have installed XAMPP, then you will need to install the Composer. Composer is a management dependency or you can say a tool for managing packages (Package Manager/Management) related to PHP and certainly for Laravel as well.

You can download Composer on the website https://getcomposer.org.

↪ How to install Laravel on Windows

After PHP and Composer are installed, the time has come for us to install Laravel in Windows, make sure there is a c:/xampp/htdocs folder via Command Prompt (CMD) by typing the command:
cd c:\xampp\htdocs
Then run the command below to install laravel.
composer create-project laravel/laravel mylaravel "5.7.*"
This command will create a new folder named mylaravel in c:\xampp\htdocs.

When running the command, the composer will automatically download all the dependencies packages needed to run Laravel to the mylaravel folder, you need to wait until it's finished and make sure your internet connection is good.

When it's finished then you can see the mylaravel folder already contains the file structure as follows. 

↪ Running Laravel

To run laravel then go to mylaravel folder with Command Prompt (CMD), then run the following artisan command:
php artisan serve
Now you can access your Laravel webpage in the browser by accessing http://localhost:8000.

Disclaimer: Images, Content of articles or videos that exist on the web sometimes come from various sources of other media. Copyright is fully owned by the source. If there is a problem with this matter, you can contact us here.
How to style text in Disqus comments:
  • To write a bold letter please use <strong></strong> or <b></b>.
  • To write a italic letter please use <em></em> or <i></i>.
  • To write a underline letter please use <u></u>.
  • To write a strikethrought letter please use <strike></strike>.
  • To write HTML code, please use <code></code> or <pre></pre> or <pre><code></code></pre>, and please parse the code in the parser box below.
Show Parser Box