Wednesday, November 14, 2018

laravel project from github setup step by step




1. Pull Laravel/php project from git provider.
 
 
 
2. Rename .env.example file to .env inside your project root and fill the database information. (windows wont let you do it, so you have to open your console cd your project root directory and run mv .env.example .env )
 
windows: copy .env.exmple to .env
 
3.  create database name and set .env file as your phpmyadmin setting.

4. Open the console and cd your project root directory

Run composer install or php composer.phar install
 
 
5. Run php artisan key:generate
6. Run php artisan migrate
7. Run php artisan db:seed to run seeders, if any.
8. Run php artisan serve