Skip to content

Instantly share code, notes, and snippets.

View eliseuborges's full-sized avatar

Eliseu Borges eliseuborges

  • Brasília, DF, Brazil
View GitHub Profile

CHEAT SHEET MORE USED

Git

git clone url - clonar a branch para o pc

git checkout nome_branch - entrar numa branch já existente.

git checkout -b name_branch - criar e entrar na branch.

git fetch - sincroniza branchs remotas criadas.

@ilhamsj
ilhamsj / laravel-notes.md
Last active July 13, 2023 02:08
Force HTTPS laravel on heroku

Force HTTPS laravel on heroku

add this line after RewriteEngine On

RewriteCond %{HTTP:X-Forwarded-Proto} =http [OR]
RewriteCond %{HTTP:X-Forwarded-Proto} =""
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

app\Http\Middleware\TrustProxies.php