Moving Laravel projects to another computer/server
Hi,
I am trying to move a laravel project built on same version of laravel, from one computer to another. But on the new computer, it starts giving several coding errors. Laravel version remains the same. My migration method is that I zipped the whole project directory from server 1 and unzipped it onto server 2.
Is there a better way of moving around the projects that I don't know about?
Best method in my opinion is to always have the latest version of your project in a private git repository.
Then you can pull the project from that repository on the 2nd computer/server.
After that you install dependencies, update env file, and add the existing db data from computer 1.
If you don't need existing db data you can just run the migrations for the first time.