Tuesday, 02 Apr, 2024 -943

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
How to install WordPress
02 Apr, 2024 view: 2083
img
Xampp Tutorial Create Your Own Local Test Server
02 Apr, 2024 view: 1184
img
How to Install Laravel
02 Apr, 2024 view: 943
img
PHP is not recognized as an internal or external command
02 Apr, 2024 view: 723
img
How to Install Composer on Windows
01 Apr, 2024 view: 723
img
Summernote image upload
01 Nov, 2023 view: 668
img
How to clear select2 selected value in js
01 Nov, 2023 view: 494
img
Zipping and Unzipping Files in Linux
02 Apr, 2024 view: 442
img
How to add Datepicker in Bootstrap
26 Apr, 2024 view: 440
img
How to Import a MySQL Database using Command Line
02 Apr, 2024 view: 431
img
How to Installation Laragon
01 Apr, 2024 view: 284
img
How to Installing an SSL certificate on your server using cPanel
06 Apr, 2024 view: 255
img
Paypal Payment Gateway Integration With Laravel
06 Apr, 2024 view: 216
img
How to Use Laravel Middleware to Protect Your Application
09 Apr, 2024 view: 212
img
Laravel Authentication Tutorial
09 Apr, 2024 view: 208
img
Laravel Cache Clear Command Php Artisan Optimize
09 Apr, 2024 view: 207
img
laravel qr code generator package
18 Apr, 2024 view: 198
img
How to Integrate Stripe Payment in Laravel
06 Apr, 2024 view: 197
img
why important website development learn
10 Apr, 2024 view: 194
img
How to Install Laravel Valet on Windows
26 Feb, 2025 view: 21
img
Learn how to implement Single Sign-On (SSO) in Node.js using Passport.js and TypeScript for enhanced user experience and secure ...
26 Feb, 2025 view: 6
Trending