Skip to content

Instantly share code, notes, and snippets.

View zachleigh's full-sized avatar

Zach Leigh zachleigh

View GitHub Profile
@zachleigh
zachleigh / SlackFileDeleter.php
Last active December 5, 2017 03:49
Class to delete Slack files via API call
<?php
use GuzzleHttp\Client;
class SlackFileDeleter
{
/**
* Slack API token.
*
* @var string
@zachleigh
zachleigh / SeleniumTestCase.php
Created June 11, 2016 12:44
Access Laravel Models and database while using Selenium
<?php
use Elephany\Console\Kernel;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\Concerns\ImpersonatesUsers;
use Illuminate\Foundation\Testing\Concerns\MakesHttpRequests;
use Illuminate\Foundation\Testing\Concerns\InteractsWithConsole;
use Illuminate\Foundation\Testing\Concerns\InteractsWithSession;
use Illuminate\Foundation\Testing\Concerns\InteractsWithDatabase;
use Illuminate\Foundation\Testing\Concerns\InteractsWithContainer;
@zachleigh
zachleigh / BladeDirectivesProvider.php
Last active November 10, 2016 16:07
Useful Laravel Blade directives
<?php
namespace App\Providers;
use Blade;
use Illuminate\Support\ServiceProvider;
class BladeDirectivesProvider extends ServiceProvider
{
/**