How to run Laravel project on localhost

Here today I will give you some tips about how to run Laravel project on local using XAMPP or WAMP server.

How to run Laravel project on localhost

For Windows users, there are some steps to do first,

Windows Users:

  1. Download XAMPP or WAMP server

    XAMPP download link:
    WAMPP download link:

  2. Download Composer, for Laravel package control, you can download from the below link, Composer download link: you completed the installation of the composer you can check from your windows CMD,
    Write composer hit ENTER on your cmd which looks like this,

  3. Next, Download Git Bash from a given link for running composer, Git:

Also Read: Create Repository & Push Code To GitHub First Time

Now, Windows, Linux, and macOS users can continue from the below steps.

  1. Run the XAMPP or any server on your system, open PHPMYADMIN or database, and create the database named with homestead type utf8_general_ci.
  2. Pull or download the Laravel project from Git.
  3. On the Laravel project package, you can see the .enc.example file which is inside your root directory. Rename .env.example file to. .envSo, open a command prompt and write the following command mv .env.example .env.
  4. Open the console and cd to the root directory of your project.
  5. Run composer install or php composer.phar install.
  6. Run php artisan key:generate
  7. Run php artisan migrate
  8. Run php artisan db:seed run seeders, if any.
  9. Run php artisan serve.

After completing all these things, on your browser running the project look like this,

Also Check:

Above is the complete article that helps to set up your Laravel project locally.

Solution of, How to run Laravel project on local.

Happy Coding…!

Was this article helpful?

By Bikash

My name is Bikash Kr. Panda. I own and operate PHPCODER.TECH. I am a web Programmer by profession and working on more than 50 projects to date. Currently I am working on the web-based project and all the CMS and frameworks which are based on PHP.

6 thoughts on “How to Run Laravel Project on Localhost”

Leave a Reply

Your email address will not be published. Required fields are marked *