php - How to add /import sample Laravel Project? -


after familiar codeigniter, stared learn laravel.

i able install laravel using following command.

composer create-project --prefer-dist laravel/laravel blog 

it works fine. :-)


next tried setup sample laraval project. found sample project here (https://github.com/evercode1/sample-project).

what did download , copied folders xampp htdocs folder.

then visit "http://localhost/sample-project-master/public/".

it gives following error.

warning: require(d:\xampp\htdocs\sample-project-master\bootstrap/../vendor/autoload.php): failed open stream: no such file or directory in d:\xampp\htdocs\sample-project-master\bootstrap\autoload.php on line 17

fatal error: require(): failed opening required 'd:\xampp\htdocs\sample-project-master\bootstrap/../vendor/autoload.php' (include_path='d:\xampp\php\pear') in d:\xampp\htdocs\sample-project-master\bootstrap\autoload.php on line 17

have done mistake when setting available laravel project? how correct following errors or way import laravel project?

you should do:
1) install composer dependencies

composer install 

2) application key need generated command

php artisan key:generate 

3) open project in code editor, rename .env.example .env , modify db name, username, password environment.

4) migrate database along seed

php artisan migrate --seed 

5) run artisan serve command

php artisan serve 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -