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';
<!DOCTYPE html> | |
<!--[if IE 8]> <html lang="sv-SE" class="no-js ie8"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html lang="sv-SE" class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Breakpoint detection test</title> | |
<style type="text/css" media="screen"> | |
@media screen and (min-width: 320px) { | |
#page:after { | |
content: 'smallest'; /* represent the current width-bracket */ |
<!doctype html> | |
<html> | |
<head> | |
<title>CSS Media Check</title> | |
<style type="text/css"> | |
#mediaquery{ | |
-webkit-transition: width .001s; | |
-moz-transition: width .001s; |
<?php | |
require_once("finding.php"); | |
$ebay = new ebay(); | |
//search by keyword - keywords can be space separated list of searches | |
print_r($ebay->findProduct('findItemsByKeywords', 'Dresses Pants', 2)); | |
//search by category - dresses = 63861, pants = 63863 | |
print_r($ebay->findProduct('findItemsByCategory', '63861', 2)); |
<?php | |
class eBayShopping{ | |
//variable instantiation | |
private $uri_shopping = 'http://open.api.ebay.com/shopping'; //Production Shopping API endpoint | |
private $appid = 'YOUR APPLICATION ID'; //Production application ID | |
private $version = '787'; //API version | |
private $format = 'JSON'; //API response format | |
private $siteid = '0'; //Site to search (Currently U.S.) - full site list at http://developer.ebay.com/devzone/shopping/docs/callref/types/SiteCodeType.html | |
private $standard_qstring = ''; //Standard query string parameters to be applied to all requests | |
#!/bin/sh | |
if [ $(ps aux | grep $USER | grep node | grep -v grep | wc -l | tr -s "\n") -eq 0 ] | |
then | |
export PATH=/usr/local/bin:$PATH | |
export NODE_ENV=production | |
cd /path/to/app && forever --spinSleepTime 10000 start server.js >> forever.log 2>&1 | |
fi |