logo logo

MenaCoding, The next-generation Tech, Web Development, and Social Media Blog for you to start enjoying today!

MenaCoding

Save on Premium Membership

Get the insights report trusted by experts around the globe. Become a Member Today!

Coming Soon!

Amman, Jordan (HQ)

7th Circle, Al-Rawabi District

WhatsApp

hello@menacoding.com
Laravel

How to Create a New Laravel 9 App: A Step-by-Step Guide with XAMPP and PHP 8.0

In this tutorial, we'll walk through the process of setting up a new Laravel 9 application. We'll start by installing XAMPP with PHP 8.0, and then move on to creating and running a Laravel 9 project.

Prerequisites
 

  • Basic knowledge of PHP and web development.

  • A computer running Windows, macOS, or Linux.

Step 1: Installing XAMPP

XAMPP is a free and open-source cross-platform web server solution that includes Apache, MariaDB, PHP, and Perl.

  1. Download XAMPP: Go to the Apache Friends website and download the version of XAMPP with PHP 8.0.
  2. Install XAMPP: Run the installer and follow the instructions. Make sure to select PHP and MySQL.

xampp-installation-1
XAMPP Installation

Step 2: Installing Composer

Composer is a dependency manager for PHP, and Laravel requires it for managing its dependencies.

  1. Download Composer: Visit the Composer download page and download the installer.
  2. Install Composer: Run the installer. Ensure that it adds the Composer’s bin directory to your system path.

  1. Open Command Prompt or Terminal.

  2. Install Laravel Globally: Run the following command:

    composer global require laravel/installer 
    composer global require laravel/installer
    composer global require laravel/installer2
    composer global require laravel/installer
    
composer global require laravel/installer

   3. Ensure the Composer's global bin directory is in your system's PATH so the laravel executable can be located.

Step 4: Creating a New Laravel Project

Create a new Laravel project using the Laravel installer.

  1. Navigate to the directory where you want your project: E.g., cd C:\xampp\htdocs

  2. Create a new Laravel project: Run the command:

composer create-project laravel/laravel my_laravel_project

Replace my_laravel_project with your desired project name.

Step 5: Running the Laravel Project

Let's get your Laravel application up and running.

  1. Navigate to your project directory: E.g., cd my_laravel_project

  2. Run the Laravel project: Use the command:

php artisan serve

3. Access Your Project: Open your web browser and visit http://localhost:8000. You should see the Laravel welcome page.

Conclusion

Congratulations! You've successfully set up a new Laravel 9 application using XAMPP and PHP 8.0. This setup provides you with a robust environment for developing modern web applications using Laravel.


 

 

Previous post
Next post

avatar

Husam Shilbaya

Creator of MenaCoding
View Articles

The backbone of our platform, Husam is a Laravel maestro with a fervor for crafting web solutions that speak. His codes are not just lines but the language that bridges ideas with reality.


Ready to get the help you need?

Don't hesitate! Reach out to us now by filling out the form below, or get in touch via email at hello@menacoding.com. We're here to assist you.

Share this article