Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

gurvindersingh's avatar

I want to run my existing laravel project into my new windows system

I have copied laravel project from old windows system now i want to run this project into my new windows system and I copied all the files from old system tp this system. Now what other steps should i follow to run it.

0 likes
5 replies
jlrdw's avatar

Set up composer and git so you can do your updating.

Cronix's avatar

We don't know how your old system was set up, so it's kind of hard to answer that. Did you install php, mysql or any other things you need? Personally I just install homestead, which includes 100% of everything you need for a default laravel install. Especially on windows which is a non-case sensitive OS and can cause many issues developing on if you're not very careful. Most of the time you don't realize your mistakes until you upload it to a real server (which is most likely case-sensitive) and nothing works.

Lugi's avatar

Here are my steps:

  1. install web server (I use WampServer which includes php and mysql)

  2. install composer (download .exe and install, during the installation procedure set the correct path to php.exe, then you will have php command available later in cmd)

  3. install Laravel project - go to c:\wamp\www and run composer create-project laravel/laravel <projectname> --prefer-dist

  4. create Git repository

  5. create database (I suggest using SQLite for local testing deployments - so install SQLite and DB Browser for SQLite)

  6. install Node.js

  7. go to <projectroot> directory and run npm install

  8. go to <projectroot>\resources\assets\sass\app.scss and uncomment the line...

jaythanki's avatar
Level 1
  1. Set up with web server(php,mysql).

  2. If you had copied vendor folder than you should delete after copied to your new windows system and run command ## composer update to avoid any composer related issues like paths,versions and compatibility.

  3. configure your .env according to your project

    DB_CONNECTION=mysql // DEFAULT DB_HOST=127.0.0.1 // DEFAULT DB_PORT=3306 // DEFAULT DB_DATABASE=YOUR_DB_NAME DB_USERNAME=YOUR_DB_USERNAME DB_PASSWORD=YOUR_DB_PASSWORD

  4. Run this command to clear your config

    php artisan config:cl

  5. After that you need to run migrate for tables creation.

    php artisan migrate

  6. You can now run your project :

    php artisan serve

Sorry for bad english if any mistakes in above steps. hope this will help @GURVINDERSINGH

Please or to participate in this conversation.