Skip to content

Instantly share code, notes, and snippets.

Ryan Hayle hackel

  • Minneapolis, USA
Block or report user

Report or block hackel

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
hackel / DropUnsetAttributes.php
Created Mar 8, 2017
Trait for Jenssegers/Mongodb models that will automatically unset any attributes contained in the $clearable (or $fillable) property.
View DropUnsetAttributes.php
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Arr;
* Class DropUnsetAttributes will drop any fields contained in the model's $clearable
* array if they are not included in the attributes on mass-assignment (fill).
* @package Quirks\ModelTraits
View .cvimrc
" My cVim configuration
hackel / SentryAuthAdapter.php
Last active Mar 7, 2017
SentryAuthAdapter for using Tymon\JWTAuth with Cartalyst\Sentry
View SentryAuthAdapter.php
<?php namespace MyApp\Providers;
use Exception;
use Cartalyst\Sentry\Sentry;
use Cartalyst\Sentry\Users\UserInterface;
use Tymon\JWTAuth\Providers\Auth\AuthInterface;
class SentryAuthAdapter implements AuthInterface
You can’t perform that action at this time.