Thursday, 26 November 2020

How to Setup a Laravel Project You Cloned from Github.com


1. Clone GitHub repo for this project locally

git clone linktogithubrepo.com/ projectName

2. cd into your project

cd projectName

3. [Optional]: Checkout the “Start” tag so you have a fresh install of the project (and not the final files)

git checkout tags/start -b tutorial

4. Install Composer Dependencies

composer install

5. Install NPM Dependencies

npm install

6. Create a copy of your .env file

cp .env.example .env

7. Generate an app encryption key

php artisan key:generate

8. Create an empty database for our application

9. In the .env file, add database information to allow Laravel to connect to the database

In the .env file fill in the DB_HOSTDB_PORTDB_DATABASEDB_USERNAME, and DB_PASSWORD options to match the credentials of the database you just created.

10. Migrate the database

php artisan migrate

11. [Optional]: Seed the database

php artisan db:seed

Congratulation Copy past has done Enjoy 


1 comment:

  1. I impressed by your efforts of writing skill ,I love it .This post is really amazing . I will wait for your attractive blogs. Thank you for sharing.

    Canada Immigration Consultants

    ReplyDelete

The Building Blocks of IoT: Embedded Devices, Sensors, and Actuators 🧠 The Building Blocks of IoT: Embedded D...

Popular Posts