This file contains hidden or 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 SuperEloquent extends Eloquent | |
{ | |
protected $before_save = array(); | |
public function __construct($attributes = array()) | |
{ | |
parent::__construct($attributes); | |
} |
This file contains hidden or 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 | |
return array( | |
/* | |
|-------------------------------------------------------------------------- | |
| ISO Countries | |
|-------------------------------------------------------------------------- | |
| | |
| Associative array of all countries with their two-character ISO code | |
| |
This file contains hidden or 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 | |
// Set image source | |
$source = new League\Flysystem\Filesystem( | |
new League\Flysystem\Adapter\Local('path/to/source/folder') | |
); | |
// Set image cache | |
$cache = new League\Flysystem\Filesystem( | |
new League\Flysystem\Adapter\Local('path/to/cache/folder') | |
); |
This file contains hidden or 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 Your\App\Namespace; | |
use League\Glide\Server as Glide; | |
use League\Glide\Http\NotFoundException; | |
class Server extends Glide { | |
public function makeImage() | |
{ | |
$request = $this->resolveRequestObject(func_get_args()); |