- 「Image2Base64」を追加しました。
- 「AdvancedNewFile」を追加しました。
- 「Quick Look」を追加しました。
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 | |
// http://ideone.com/JWKIf | |
function is_64bit() { | |
$int = "9223372036854775807"; | |
$int = intval($int); | |
if ($int == 9223372036854775807) { | |
/* 64bit */ | |
return true; |
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 Auth_Controller extends Base_Controller { | |
public $restful = true; | |
public function __construct() { | |
$this->filter( 'before', 'guest' )->except( array( 'logout', 'validate' ) ); | |
// Note: We may not always require CSRF on login for system based logins so ignore it here. | |
$this->filter( 'before', 'csrf' )->on( 'post' )->except( array( 'login' ) ); | |
} |
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 Softdelete extends HealthieModel | |
{ | |
protected function query() | |
{ | |
return new SoftDeleteQuery($this); | |
} | |
public function delete() |
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
CREATE TABLE `makers` ( | |
`id` int(10) unsigned NOT NULL, | |
`name` varchar(255) NOT NULL, | |
`description` varchar(255) NOT NULL, | |
`created_at` datetime NOT NULL, | |
`updated_at` datetime NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
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 { | |
die('Only to be used as an helper for your IDE'); | |
} | |
namespace { | |
class Auth extends Illuminate\Auth\Guard{ | |
/** | |
* Create a new authentication guard. | |
* |
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 | |
// app/start/global.php | |
/* | |
|-------------------------------------------------------------------------- | |
| Application Error Logger | |
|-------------------------------------------------------------------------- | |
| | |
| Here we will configure the error logger setup for the application which |
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 | |
Event::listen('illuminate.query', function($query, $bindings, $time) { | |
static $count; | |
if(App::make('env') === 'local') | |
{ | |
$logFile = __DIR__.'/storage/logs/queries'; | |
ob_start(); | |
var_dump($bindings, $query); | |
$str = ob_get_clean(); | |
if($count === null) |
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 | |
/** | |
* An helper file for Laravel 4, to provide autocomplete information to your IDE | |
* Generated with https://github.com/barryvdh/laravel-ide-helper | |
* | |
* @author Barry vd. Heuvel <barryvdh@gmail.com> | |
*/ | |
namespace { | |
die('Only to be used as an helper for your IDE'); | |
} |
A list of amazingly awesome PHP libraries, resources and shiny things.
- Composer/Packagist - A package and dependency manager.
- Composer Installers - A multi framework Composer library installer.