Last active
December 28, 2018 13:53
-
-
Save samhk222/b5432ef13f293aae40276b0688e2e4d5 to your computer and use it in GitHub Desktop.
Laravel Faker Tutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/samhk222/laravel-faker-tutorial | |
cd laravel-faker-tutorial | |
docker-compose up -d | |
# Instale as dependencias | |
docker exec TUT-7.2.x-webserver composer install | |
# Copie o arquivo .env e altere para acessar seu banco | |
cp public_html/.env.example public_html/.env | |
# Altere os parametros do arquivo .env | |
# DB_CONNECTION=mysql | |
# DB_HOST=TUT-5.6-mysql | |
# DB_PORT=3306 | |
# DB_DATABASE=SERVER | |
# DB_USERNAME=root | |
# DB_PASSWORD=password | |
# Gere a chave | |
docker exec TUT-7.2.x-webserver php artisan key:generate | |
# De as permissoes necessaria nas pastas | |
docker exec TUT-7.2.x-webserver chmod 777 -R storage/ bootstrap/cache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment