This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface UserFetcher { | |
/** | |
* Fetch a User by it's ID | |
* @param $id | |
* @return mixed | |
*/ | |
public function fetch($id); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hey Josh Brown, | |
The other day I was talking to a friend about a problem child on his team. | |
The day before a critical project deadline, this team member "went dark." | |
She just failed to show up one day—no check in, no communication. | |
Balls got dropped, and my friend was left scrambling to pick up the pieces. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class CacheUserRepositoryDecorator implements UserRepository { | |
protected $userRepository; | |
protected $cache; | |
protected $cacheTag = 'users'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Illuminate\Foundation\Http\FormRequest; | |
class $CLASSNAME$ extends FormRequest | |
{ | |
/** | |
* Authorise the Request | |
* @return bool | |
*/ | |
public function authorize() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const gulp = require('gulp'), | |
imagemin = require('gulp-imagemin'), | |
browserify = require('browserify'), | |
babelify = require('babelify'), | |
source = require('vinyl-source-stream'); | |
var inputPath = "resources/assets/", | |
outputPath = "public/assets/", | |
assets = { | |
js: inputPath + "js/main.js", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Http\Middleware; | |
use Closure; | |
class SecureAllPages | |
{ | |
/** | |
* Handle an incoming request. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$installer = $this; | |
$installer->startSetup(); | |
$this->addAttribute('customer_address', 'reid', [ | |
'type' => 'varchar', | |
'backend' => '', | |
'label' => 'REID', |