Skip to content

Instantly share code, notes, and snippets.

@samhk222
Last active December 28, 2018 13:53
Show Gist options
  • Save samhk222/b5432ef13f293aae40276b0688e2e4d5 to your computer and use it in GitHub Desktop.
Save samhk222/b5432ef13f293aae40276b0688e2e4d5 to your computer and use it in GitHub Desktop.
Laravel Faker Tutorial
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