Skip to content

Instantly share code, notes, and snippets.

View moiroca's full-sized avatar

John Roca moiroca

View GitHub Profile
@moiroca
moiroca / S3Utility.php
Created August 4, 2016 08:44
S3 Utility Encapsulation For Laravel Framework
<?php
/**
* S3 Utility
* @author John Temoty Roca
*/
class S3Utility
{
/**
* @var
@moiroca
moiroca / BaseModel.php
Last active May 18, 2016 06:49 — forked from goranprijic/BaseModel.php
Check if table is already joined in Laravel Query Builder
<?php
class BaseModel extends Eloquent {
public static function isJoined($query, $table)
{
$joins = $query->getQuery()->joins;
if($joins == null) {
return false;