Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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