I am new to Laravel. I have a live project done by my colleague. I need to make some changes in the project. How can I move this project from live to local. I just downloaded the project and save to my localhost but it is not working. What are the changes need to setup this on local server
Generally speaking, that approach should be fine as long as you treat your local copy as a fresh Laravel installation. In other words, you'll probably need to update your local .env file with your database connections and app properties (or by adjusting appropriate files in the config directory) and then open a command prompt and navigate to your local copy and run run npm install
, composer install
, php artisan migrate
and npm run dev
.
This will install any missing dependencies that your app requires, setup your local database and recompile local assets like css and javascript. Once that is successful, you should be able to run php artisan serve
and browser to http://127.0.0.1:8000/ to confirm everything is up and running.