Skip to content

Instantly share code, notes, and snippets.

# Stop all containers
docker stop `docker ps -qa`
# Remove all containers
docker rm `docker ps -qa`
# Remove all images
docker rmi -f `docker images -qa `
# Remove all volumes
@taylorivanoff
taylorivanoff / composer.sh
Created February 24, 2021 07:11
Update to Composer 2
sudo composer self-update --2
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common libssl-dev libffi-dev git wget nano
sudo groupadd docker
sudo usermod -aG docker ${USER}
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
@taylorivanoff
taylorivanoff / workflow.md
Last active January 13, 2021 12:23
Laravel API Workflow

Create model, factory, migration, seeder and controller with: php artisan make:model {Model} -a

Implement routing for {Model}: Route::resource('{Model}', {Model}Controller::class);

Create events for {Model} based on CRUD and other actions within: /app/Events/{Model}/

Create service for {Model}

@taylorivanoff
taylorivanoff / settings.json
Last active February 24, 2021 07:08
Windows Terminal
{
"guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"hidden": false,
"name": "Ubuntu",
"source": "Windows.Terminal.Wsl",
"colorscheme": "One Half Dark",
"historySize": 9001,
"snapOnInput": true,
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
@taylorivanoff
taylorivanoff / .lando.yml
Last active June 29, 2021 03:30
Lando Example
name: stepmate
recipe: laravel
config:
webroot: public
services:
pma:
type: phpmyadmin
hosts:
- database
proxy: