This document provides steps to install Laravel 5 on a local development environment:
1. Install prerequisites like Xampp server, PHP 5.5+, and Composer. Download and install Composer.
2. Open the command prompt and navigate to the htdocs directory. Run the command "composer create-project laravel/laravel project_name" to create a new Laravel project.
3. After installation completes, visit "https://localhost/project_name/public" in the browser to access the newly created Laravel project.
6. Install Laravel
Open command prompt.
Type composer and press
enter.
Check if composer is
working. It should give a
output screen like this.
7. Install Laravel
Go to htdocs directory
from cmd.
In case of mine, I have
xampp server installed on
G:xampphtdocs
Type g: and press enter.
Then type
cd xampp/htdocs
8. Type the following command to
create a new Laravel 5 project:
Here, project_name is the desired project name.
It can be anything you want. Follow the next slide.
Create Laravel Project
composer create-project laravel/laravel project_name
9. Create Laravel Project
Press enter. It will take
some time depending on
your internet connection.
After installation, you will
see the success
message.
10. Create Laravel Project
Open browser and enter
following address:
In my case
project_name is
learnlaravel.
It will take you to the
newly created Laravel
project.
https://localhost/project_name/public
11. Finished!
Congrats, you have successfully installed
LARAVEL 5
Note: This is one of the procedures to install Laravel. There are other ways to install it. For those,
check Laravels documentation on official website.