##Windows users:
- Download wamp: http://www.wampserver.com/en/
- Download and extract cmder mini: https://github.com/cmderdev/cmder/releases/download/v1.1.4.1/cmder_mini.zip
- Update windows environment variable path to point to your php install folder (inside wamp installation dir) (here is how you can do this http://stackoverflow.com/questions/17727436/how-to-properly-set-php-environment-variable-to-run-commands-in-git-bash)
cmder will be refered as console
##Mac Os, Ubuntu and windows users continue here:
- Create a database locally named
homestead
utf8_general_ci - Download composer https://getcomposer.org/download/
- Pull Laravel/php project from git provider.
- 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 runmv .env.example .env
) - Open the console and cd your project root directory
- Run
composer install
orphp composer.phar install
- Run
php artisan key:generate
- Run
php artisan migrate
- Run
php artisan db:seed
to run seeders, if any. - Run
php artisan serve
#####You can now access your project at localhost:8000 :)
composer install
php artisan migrate
Hello I Followed these ways that you mentioned but I got an error (PHP Warning: require(C:\Users\BB\Downloads\RMZ-main\RMZ-main/vendor/autoload.php): Failed to open stream: No such file or directory in C:\Users\BB\Downloads\RMZ-main\RMZ-main\artisan on line 18
Warning: require(C:\Users\BB\Downloads\RMZ-main\RMZ-main/vendor/autoload.php): Failed to open stream: No such file or directory in C:\Users\BB\Downloads\RMZ-main\RMZ-main\artisan on line 18
PHP Fatal error: Uncaught Error: Failed opening required 'C:\Users\BB\Downloads\RMZ-main\RMZ-main/vendor/autoload.php' (include_path='F:\xampp\php\PEAR') in C:\Users\BB\Downloads\RMZ-main\RMZ-main\artisan:18
Stack trace:
#0 {main}
thrown in C:\Users\BB\Downloads\RMZ-main\RMZ-main\artisan on line 18
Fatal error: Uncaught Error: Failed opening required 'C:\Users\BB\Downloads\RMZ-main\RMZ-main/vendor/autoload.php' (include_path='F:\xampp\php\PEAR') in C:\Users\BB\Downloads\RMZ-main\RMZ-main\artisan:18
Stack trace:
#0 {main}
thrown in C:\Users\BB\Downloads\RMZ-main\RMZ-main\artisan on line 18
PS C:\Users\BB\Downloads\RMZ-main\RMZ-main> )