This file contains hidden or 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 | |
use Illuminate\Database\Seeder; | |
class PostTagTableSeeder extends Seeder | |
{ | |
/** | |
* @var | |
*/ | |
private $pivotData = []; |
This file contains hidden or 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
module.exports = function($http, $q, $log) { | |
return { | |
getStores : function(){ | |
var deferred = $q.defer(); | |
$http({method: 'GET', url : 'api/stores'}) | |
.success(function(data, status, headers, config) {deferred.resolve(data) }) | |
.error(function(data, status, headers, config) { deferred.reject(status);}); | |
return deferred.promise; | |
}, |
This file contains hidden or 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
/** | |
* Simple JS Class Set up and usage | |
*/ | |
var MyClassName = (function(){ | |
/** | |
* Add variable here public and private | |
* I use an underscore for my private variables to separate them visually | |
*/ |