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';
| alias sshkey="cat ~/.ssh/id_rsa.pub | pbcopy && echo 'Copied to clipboard.'" |
| #include <SPI.h> | |
| #include <Ethernet.h> | |
| // Thx http://bildr.org/2012/11/force-sensitive-resistor-arduino/ | |
| // Make use of https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide | |
| // MAC Address, needed by the Ethernet Shield | |
| byte mac[] = { 0xB0, 0xC0, 0xDE, 0xEF, 0xFE, 0xC7 }; | |
| int pin_red = 7; // Red LED |
| <?php | |
| /** | |
| * Classes source autoload | |
| */ | |
| class Varien_Autoload | |
| { | |
| /** @var \Composer\Autoload\ClassLoader */ | |
| private static $autoloader; | |
| /** @var self */ |
| <?php | |
| class Shopware_Plugins_Frontend_OrderMod_Bootstrap extends Shopware_Components_Plugin_Bootstrap | |
| { | |
| /** | |
| * (non-PHPdoc) | |
| * @see Shopware_Components_Plugin_Bootstrap::install() | |
| */ | |
| public function install() | |
| { |
| #!/usr/bin/php | |
| <?php | |
| /** | |
| * .git/hooks/pre-commit | |
| * | |
| * This pre-commit hooks will check for PHP error (lint), and make sure the code | |
| * is PSR compliant. | |
| * | |
| * Dependecy: PHP-CS-Fixer (https://github.com/fabpot/PHP-CS-Fixer) | |
| * |