djkaushiksk1's avatar

How to open downloaded laravel projects from GITHUB on localhost XAMPP

Hi,

If i downloaded a laravel project from online GITHUB, How can i make this work on my localhost.

Eg. if i download https://github.com/laravel/quickstart-intermediate, how can i make this work on localhost.

I'm using MySQL for DB and have also installed composer.

Your reply will be much appreciated

Thanks Kaushik

0 likes
9 replies
tykus's avatar

If you are using Homestead, just install the app's dependencies:

composer install

and migrate the database:

php artisan migrate

If you are not using Homestead, then create a database and update the config/database.php with the connection information before you try to migrate.

2 likes
djkaushiksk1's avatar

Hi,

When i download the file and then had change the DB details.

However, i'm receiving the below error: FatalErrorException in ProviderRepository.php line 146: Class 'Illuminate\Routing\ControllerServiceProvider' not found in C:\xamppp\htdocs\master\local\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php line 146

Thanks Kaushik

1 like
jekinney's avatar

You should clone the repo, but it's not going to include all the files because of Ignore files. Zip works too but either way errors are expected. You just need to work through each error. The errors your getting are self explanatory, the file doesn't exist and you need to create it or find it.

djkaushiksk1's avatar
djkaushiksk1
OP
Best Answer
Level 1

Thanks Sachin,

First need to download the project.

Then extract the file and put it in htdocs

Change the DB details in the .env file and also in the /config/database.php

Then open CMD

Go to the directory where the project is

Enter the command composer install

Enter the command php artisan migrate

run the project on the browser DONE

Thanks all,

You all are a genius... thanks for helping out

3 likes
sirgeorge's avatar

hey fellas, i have downloaded a project from github, i wanted to test it on my local host, i ran composer install, now all i see is two identical lines of: "Whoops, looks like something went wrong." "Whoops, looks like something went wrong."

i need help in this please

Aries1992's avatar

I create database with name"example" and config as

"DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3308 DB_DATABASE=example DB_USERNAME=root DB_PASSWORD="

When I run cmd "php artisan migrate" error log show as " [PDOException] SQLSTATE[HY000] [1049] Unknown database 'example' . Mysql listen port "3308" and runing. Please help me.. Thanks!

djkaushiksk1's avatar

DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=example DB_USERNAME=root DB_PASSWORD=

try this. I think the port should be 3306

Please or to participate in this conversation.