Tuesday, 02 Apr, 2024 -2867

How to Install Laravel

Steps for Installing Laravel

Three simple steps can be followed to install Laravel:

  1. install XAMPP to get PHP and MySQL.
  2. Download and install Composer.
  3. Install Laravel with Composer.  

How to Install Laravel

1. Open the Terminal

Installing PHP and Composer makes it easy to get started with a Laravel project.


2. Create a Laravel Project

To create a new project under the my-app folder (or any other project name you choose), run the command below.

1
composer create-project laravel/laravel my-app

This will download all the necessary Laravel files for this project.

3. Start the Development Server

Following the creation of the application, use the following commands to launch your development server while coding into my-app:

1
cd my-app
2
php artisan serve

4.  Browse to Your New Laravel App

We are done setting up the environment. Your Laravel development server should be reachable at https://localhost:8000.



Next Steps

You've now successfully installed Laravel and launched your first application. But this is just the beginning! You can now learn how to create websites and applications using this robust and user-friendly framework.

Tags:
Tags
Most Popular
img
02 Apr, 2024 view: 4104
img
02 Apr, 2024 view: 2867
img
01 Apr, 2024 view: 2740
img
01 Nov, 2023 view: 2564
img
26 Apr, 2024 view: 1688
img
02 Apr, 2024 view: 1645
img
01 Apr, 2024 view: 1518
img
18 Apr, 2024 view: 1476
img
09 Apr, 2024 view: 1434
img
10 Apr, 2024 view: 1339
img
26 Feb, 2025 view: 1286
img
16 Mar, 2025 view: 1195
Trending