git checkout 'stash@{ID}' -- path/to/filename.js
ID is the number of desired stash
At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.
$ git commit --amend
This will open your $EDITOR
and let you change the message. Continue with your usual git push origin master
.
$ mysql -uroot -p
$ CREATE DATABASE nomeapp CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
$ CREATE USER 'admin-nomeapp'@'localhost' identified by 'admin-nomeapp';
$ use nomeapp
$ GRANT ALL on nomeapp.* to 'admin-nomeapp'@'localhost';
=== TERMINAL ===== ATALHOS PARA RODAR TESTES: | |
alias pu = 'clear && vendor\bin\phpunit' | |
alias pf = 'clear && vendor\bin\phpunit --filter' | |
EM UMA FEATURE TEST, para evitar que o PHP encapsule as exceções ADICIONAR: | |
$this->withoutExceptionHandling(); | |
[diff] | |
tool = vscode | |
[difftool "vscode"] | |
cmd = code --wait --diff $LOCAL $REMOTE | |
[merge] | |
tool = vscode | |
[mergetool "vscode"] | |
cmd = code --wait $MERGED |
Entities: The standard models in Laravel, containing just configuration variables and methods to be used by Eloquent. Relationships, accessors and mutators belong here.
Repositories: Using Entities to get your data, they contain functions to gather specific sets of data in specific formats for your app. Though the logic in them might change, the returned data should always be exactly the same.
Services: The home of global logic, containing functions that are used throughout your app. It calls your Repositories but also validates, creates sessions and contains your logic. These all help to keep your controllers thin!