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';
| // ---- | |
| // Sass (v3.4.12) | |
| // Compass (v1.0.3) | |
| // ---- | |
| $scotch-color-key: 'base' !default; | |
| $scotch-colors: ( | |
| 'primary': ( | |
| 'base': #8e3329, |
| (function() { | |
| //'use strict'; | |
| angular.module('app', [ | |
| /* Shared modules */ | |
| 'app.core', | |
| /* Feature areas */ | |
| 'app.layout' |
| angular.module('LoanManager',function(LoansFactory){ | |
| function updateLoansData(response){ | |
| var allLoans = response.data.data; | |
| return $q.all(allLoans.map(updateLoanData)); | |
| } | |
| function updateLoanData(loan){ | |
| return $q.all({ | |
| need_vote: getPendingVotes(loan), |