Skip to content

Instantly share code, notes, and snippets.

View sineld's full-sized avatar
🏢
Full Stack Developer

Sinan Eldem sineld

🏢
Full Stack Developer
View GitHub Profile
<?php
// app/start/global.php
/*
|--------------------------------------------------------------------------
| Application Error Logger
|--------------------------------------------------------------------------
|
| Here we will configure the error logger setup for the application which

Recommended Sublime Text 2 Packages for Web Developers.

Update

  • 「Image2Base64」を追加しました。
  • 「AdvancedNewFile」を追加しました。
  • 「Quick Look」を追加しました。

2012~2013 Autumn & Winter

<?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.
*
@sineld
sineld / DB.sql
Created March 12, 2013 08:12 — forked from msurguy/DB.sql
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;
<?php
class Softdelete extends HealthieModel
{
protected function query()
{
return new SoftDeleteQuery($this);
}
public function delete()
@sineld
sineld / auth.php
Created January 9, 2013 10:18 — forked from mwesten/auth.php
<?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' ) );
}
@sineld
sineld / is_64_bit.php
Created December 9, 2012 20:36 — forked from clouddueling/is_64_bit.php
Is my php server 64 bit?
<?php
// http://ideone.com/JWKIf
function is_64bit() {
$int = "9223372036854775807";
$int = intval($int);
if ($int == 9223372036854775807) {
/* 64bit */
return true;
@sineld
sineld / laravel-ums.markdown
Created December 6, 2012 14:06 — forked from anchetaWern/laravel-ums.markdown
Building a User Management System in Laravel

There's no shortage of good resources for learning laravel. So instead of the usual introductory tutorial were just gonna learn Laravel by building a project from scratch and that's gonna be a User Management System.

I don't know if my definition of a User Management System is correct but here's my idea of what's it's capable of doing:

  • Register Roles
  • Register Users
  • Update Users
@sineld
sineld / contact.php
Created December 4, 2012 07:07 — forked from clouddueling/fulltextsearch.php
Fulltext search with Laravel
public static function read_search($terms, $limit = 10)
{
$contact_results = DB::query("
select *
from contacts
where `account_user_id`=?
and `deleted`='0'
and `marketing`='0'
and `mass_merge`='0'
and match (`first`, `last`) against (?)
@sineld
sineld / awesome-php.md
Created September 19, 2012 15:49 — forked from ziadoz/awesome-php.md
Awesome PHP Libraries

Awesome PHP Libraries

A list of amazingly awesome PHP libraries that you should be using: