Skip to content

Instantly share code, notes, and snippets.

View alexbowers's full-sized avatar

Alex Bowers alexbowers

View GitHub Profile
<?php
class UserController
{
Storage::disk('s3-bucket-1')->put('file.txt', '...');
}
@alexbowers
alexbowers / Prime For Refactor
Created July 29, 2016 00:16
Refactor to Collection Example for Adam
<?php
foreach($data['rules'] as &$rule) {
if($rule['type'] == RulesModel::$types['category']) {
$category = Category::getList($rule['simple_model_id']);
if(!empty($category)) {
$data['categories'][] = $category;
} else {
$rules_removed['categories']++;
@alexbowers
alexbowers / readme.md
Last active March 24, 2016 21:38
Laravel Homestead with Parallels