Skip to content

Instantly share code, notes, and snippets.

@williamwa
williamwa / gist:8de6b06c48282d6ce57f
Last active August 29, 2015 14:17
A todo list app by react native
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
@williamwa
williamwa / gist:6731066
Last active December 24, 2015 02:29
quick implement to test belongsToMany relation with a type
<?php namespace Illuminate\Database\Eloquent\Relations;
use DateTime;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Query\Expression;
use Illuminate\Database\Eloquent\Collection;
class BelongsToMany extends Relation {