These are the steps to clone a Laravel repository from GitHub or Bitbucket.

Are you having a hard time figuring out how to make a Laravel repository work on your development server?

This tutorial assumes you already have Composer and Laravel installed, if not please go install it first by following the steps at

Now that we have Composer and Laravel installed we can now proceed by following the steps below:

  1. Open a terminal and

    to the directory where you want to place the Laravel folder you are cloning.

  2. Type the command:
    git clone https://repo-address/repo.git
  3. Go into your newly cloned folder.
  4. Type the below command to install the necessary files:
    composer install
  5. Type the below command in terminal to create a new .env file:
    cp .env.example .env
  6. Run the below command to generate a new key:
    php artisan key:generate
  7. Run the below command to clear the config cache:
    php artisan config:clear
  8. Now run the command below to start the server:
    php artisan serve
  9. Get the generated address from the above command and type it in your browser address bar. Done.


  • на этой странице
    May 3, 2017 at 9:08 am

    Wohh exactly what I was looking for, thank you for posting.

    January 10, 2018 at 1:52 am

    Thanks a lot for sharing this with all folks you really realize
    what you’re talking about! Bookmarked. Please additionally visit my
    web site =). We will have a hyperlink trade agreement between us


Leave a Reply

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