Laravel Installation Guide
Many developers use Windows for PHP projects, we will cover
a basic XAMPP Setup for a Laravel project. Following these easy steps will help
you run your PHP projects and install Laravel on Windows in a matter of
minutes.
Installing XAMPP for Laravel
Download XAMPP for Windows from their official site: https://www.apachefriends.org/download.htm
For our example, we’ve chosen PHP 7.1 and XAMPP 32 bit
Run the installer and select Apache, MySQL and phpMyAdmin It’s recommended to
make the installation in C:\ to avoid issues with Windows User permissions (or
the drive where your Windows is installed) . After it’s complete do not start
anything just yet.
Install Laravel on Windows with Composer
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 path where you have created the new directory and type the following command there to install Laravel.
composer create-project laravel/laravel example-app
The
output of the command is as shown below:
Step 4
The above command will install Laravel in the current
directory. Start the Laravel service by executing the following command.
cd example-app
php artisan serve
Step 5
After executing the above command, you will see a screen as
shown below
Step 6
Copy the URL underlined in gray in the above screenshot and
open that URL in the browser. If you see the following screen, it implies
Laravel has been installed successfully.
0 Response to "Laravel Installation Guide"
Post a Comment