Skip to content

Instantly share code, notes, and snippets.

View breadthe's full-sized avatar

breadthe

View GitHub Profile
@breadthe
breadthe / SymfonyColorsDemo.php
Created February 10, 2020 23:40
A Laravel console command that lists all the default Symfony output formatter styles
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
class SymfonyColorsDemo extends Command
{
protected $signature = 'demo:symfony-colors';
@breadthe
breadthe / forge.sh
Created November 22, 2019 05:50
Laravel Forge Setup Script
#
# REQUIRES:
# - server (the forge server instance)
# - event (the forge event instance)
# - sudo_password (random password for sudo)
# - db_password (random password for database user)
# - callback (the callback URL)
#