Skip to content

Instantly share code, notes, and snippets.

<script>
export default {
props: {
color: {
type: String,
default: 'teal',
validator: value => ['teal', 'orange'].includes(value)
}
}
}
@philipboomy
philipboomy / MigrateUsersToDatabase.php
Created January 20, 2021 21:14 — forked from mikemartin/MigrateUsersToDatabase.php
Migrate flat-file users to Eloquent.
<?php
namespace App\Console\Commands;
use App\User;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\File;
use SplFileInfo;
use Statamic\Facades\YAML;
@philipboomy
philipboomy / postgres-brew.md
Created July 30, 2021 09:41 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update