0% found this document useful (0 votes)
52 views1 page

If For Some Reason Your Project Stop Working Do These:: Homestead

This document provides instructions for setting up a Laravel PHP project locally. It instructs users to download WAMP or CMder, create a database, install Composer, pull the project from source control, configure the .env file, run composer install, php artisan key:generate, migrate, seed if needed, and serve the project on localhost. It also notes additional commands to run if the project stops working or to create a symbolic link for storage.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views1 page

If For Some Reason Your Project Stop Working Do These:: Homestead

This document provides instructions for setting up a Laravel PHP project locally. It instructs users to download WAMP or CMder, create a database, install Composer, pull the project from source control, configure the .env file, run composer install, php artisan key:generate, migrate, seed if needed, and serve the project on localhost. It also notes additional commands to run if the project stops working or to create a symbolic link for storage.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

##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/cmde
r_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 .envinside 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 )
• Open the console and cd your project root directory
• Run composer install or php 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 :)

If for some reason your project stop


working do these:
• composer install
• php artisan migrate

To create the symbolic link, you may use the storage:link Artisan


command:
php artisan storage:link

You might also like