Tuesday, 02 Apr, 2024 -1410

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: 2563
img
02 Apr, 2024 view: 1410
img
01 Apr, 2024 view: 1226
img
01 Nov, 2023 view: 1139
img
26 Apr, 2024 view: 743
img
02 Apr, 2024 view: 735
img
01 Apr, 2024 view: 574
img
09 Apr, 2024 view: 493
img
18 Apr, 2024 view: 490
img
16 Mar, 2025 view: 290
Trending