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.
%d bloggers like this: