Run Laravel project on local setup

1.6k Views Asked by At

I have a project which was completed earlier by previous developer team using laravel framework and it is hosted on live.

I have downloaded the source code using FTP 'Filezilla' from the live server and have the full project folder or the hard drive.

Now In order to make changes and understand I want to set it locally.

I want to set it up in local environment where I use WAMP server.

Please suggest me how can I proceed and in which All files I have to make changes.

So please tell me how can I install the same . It will be helpful if step-by step instruction can be provided.

I am new to laravel and wanting to learn the framework. Please help

Thanks in Advance.

1

There are 1 best solutions below

0
Sandy Sanap On
  1. Go to project folder and install / update the composer.
  2. Update the .env file (if it is .env.example then rename it .env file) and add all the required configuration of .env file.
  3. Generate the key by php artisan key:generate command.
  4. Run the commands composer dumpautoload (dump-autoload command which won't download anything new, but looks for all of the classes it needs to include again and helps to regenerates the list of all classes that need to be included in the project).
  5. php artisan config:cache (clear the config cache)

  6. Run the command php artisan serve. (Start the server).

I hope this will be useful.