- https://speakerdeck.com/willroth/50-laravel-tricks-in-50-minutes
- https://www.reddit.com/r/laravel/comments/3to60i/50_laravel_tricks/
- 1. Automatic Model Validation
| #!/usr/bin/env ruby | |
| require 'fileutils' | |
| # Originally -- Dave Deriso -- [email protected] | |
| # Contributor -- G. Richard Bellamy -- [email protected] | |
| # If you contribute, put your name here! | |
| # To get your team ID: | |
| # 1. Go to your GitHub profile, select 'Personal Access Tokens', and create an Access token | |
| # 2. curl -H "Authorization: token <very-long-access-token>" https://api.github.com/orgs/<org-name>/teams | |
| # 3. Find the team name, and grabulate the Team ID |
| ############################################################################### | |
| # Helpful Docker commands and code snippets | |
| ############################################################################### | |
| ### CONTAINERS ### | |
| docker stop $(docker ps -a -q) #stop ALL containers | |
| docker rm -f $(docker ps -a -q) # remove ALL containers | |
| docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter | |
| # exec into container |
Located in alphabetical order (not prefer)
Cab), also designed as a more modern replacement, written in Cgolang)