Skip to content

Instantly share code, notes, and snippets.

Stidges stidges

Block or report user

Report or block stidges

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
stidges / tailwind.itermcolors
Last active May 29, 2019
An iTerm2 color scheme based on the Tailwind CSS color scheme (
View tailwind.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<key>Ansi 0 Color</key>
<key>Alpha Component</key>
<key>Blue Component</key>
stidges / Request.php
Created Jan 1, 2018
Code to accompany the 'Reusable Validation Rules with Laravel Form Requests' post (
View Request.php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Validator;
abstract class Request extends FormRequest

Keybase proof

I hereby claim:

  • I am stidges on github.
  • I am stidges ( on keybase.
  • I have a public key ASCfoJPTZueL1UgrbhO7O8vSDv5UEqmtxxAdhaQpnOeorAo

To claim this, I am signing this object:

stidges / TestCase.php
Last active Sep 16, 2017
Easily test your Laravel middleware classes. Blog post:
View TestCase.php
namespace Tests;
use Illuminate\Foundation\Testing\TestResponse;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use PHPUnit\Framework\Assert;
abstract class TestCase extends BaseTestCase
View AllowedUsernameValidator.php
# app/Validation/AllowedUsernameValidator.php
namespace App\Validation;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Routing\Router;
use Illuminate\Config\Repository;
stidges / example.php
Created Dec 19, 2016
Using when() in the Laravel query builder
View example.php
namespace App\Http\Controllers;
use App\Post;
use Illuminate\Http\Request;
class PostsController extends Controller
public function index(Request $request)
stidges / CacheBustingLaravelValetDriver.php
Last active Aug 21, 2018
Rewrite filename-based cache busting URIs (e.g. jquery.1476809927.js) to the correct filename in Laravel Valet
View CacheBustingLaravelValetDriver.php
class CacheBustingLaravelValetDriver extends LaravelValetDriver
public function isStaticFile($sitePath, $siteName, $uri)
$result = parent::isStaticFile($sitePath, $siteName, $uri);
if ($result !== false) {
return $result;
View FormBuilder.php
namespace Acme\Html;
use Illuminate\Html\FormBuilder as IlluminateFormBuilder;
class FormBuilder extends IlluminateFormBuilder {
* An array containing the currently opened form groups.
stidges / spinner.css
Last active Aug 29, 2015
Simple single-element spinner using CSS3 animations
View spinner.css
body {
background-color: #d6e0e6;
.spinner {
position: absolute;
top: 50%;
left: 50%;
margin-left: -21.5px;
margin-top: -21.5px;
You can’t perform that action at this time.