Defining Eloquent model (will assume that DB table named is set as plural of class name and primary key named "id"):
class Shop extends Eloquent {}
Using custom table name
protected $table = 'my_shops';
| Transactings.findAll({ | |
| where: { | |
| status: 'PENDING' | |
| }, | |
| include: [Account] | |
| }).done(function (err, transactings) { | |
| async.forEach(transactings, function (transacting, callback) { | |
| restler.post('http://someurl/getTransactionInfo',data:{ | |
| tx_id: transacting.id | |
| }).on('complete',function(data,response){ |
| var Intimidate = require('intimidate'); | |
| var s3Uploader = function(options) { | |
| try { | |
| this.client = new Intimidate(options); | |
| } catch (e) { | |
| return null; | |
| } | |
| }; |
| { | |
| "USD": { | |
| "symbol": "$", | |
| "name": "US Dollar", | |
| "symbol_native": "$", | |
| "decimal_digits": 2, | |
| "rounding": 0, | |
| "code": "USD", | |
| "name_plural": "US dollars" | |
| }, |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| { | |
| "vars": { | |
| "@gray-base": "#000", | |
| "@gray-darker": "lighten(@gray-base, 13.5%)", | |
| "@gray-dark": "lighten(@gray-base, 20%)", | |
| "@gray": "lighten(@gray-base, 33.5%)", | |
| "@gray-light": "lighten(@gray-base, 46.7%)", | |
| "@gray-lighter": "lighten(@gray-base, 93.5%)", | |
| "@brand-primary": "darken(#428bca, 6.5%)", | |
| "@brand-success": "#5cb85c", |
| #!/bin/bash | |
| # install homebrew | |
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| # install homebrew's official php tap | |
| brew tap josegonzalez/homebrew-php | |