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 https://getcomposer.org.
Now that we have Composer and Laravel installed we can now proceed by following the steps below:
- Open a terminal and
to the directory where you want to place the Laravel folder you are cloning.
- Type the command:
git clone https://repo-address/repo.git
- Go into your newly cloned folder.
- Type the below command to install the necessary files:
- Type the below command in terminal to create a new .env file:
cp .env.example .env
- Run the below command to generate a new key:
php artisan key:generate
- Run the below command to clear the config cache:
php artisan config:clear
- Now run the command below to start the server:
php artisan serve
- Get the generated address from the above command and type it in your browser address bar. Done.