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';
| Software for the Project: | |
| Raspbian Wheezy Debian Linux | |
| Win32Disk Imager | |
| The CanaKit comes with a pre-loaded SD card that includes the same version of Debian Wheezy that I used for this project. However, in an effort to get a little more speed out of the system, I used the 95MB/s Sandisk extreme listed above. It seemed to help, but I did not bench mark it beyond observation. | |
| Anyway, lets get down to building a Raspberry Pi Web Kiosk. | |
| Step 0: Get all of the hardware. | |
| Step 1: Get all of the software. |
| <?php | |
| // DEFINE our cipher | |
| define('AES_256_CBC', 'aes-256-cbc'); | |
| // Generate a 256-bit encryption key | |
| // This should be stored somewhere instead of recreating it each time | |
| $encryption_key = openssl_random_pseudo_bytes(32); | |
| // Generate an initialization vector | |
| // This *MUST* be available for decryption as well |
| #! /usr/bin/env python3.5 | |
| """ | |
| #################################################################### | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2016 Vahid Mardani | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long |
| //phoneGap HTML5 SQLite database schema migration example | |
| var db = null; | |
| var current_migration = null; | |
| var current_schema_version = null; | |
| // keep migration version order | |
| var db_migrations = { | |
| v1: { | |
| version: "1.0", | |
| up: function(tx) { |
| {{-- Define all our servers --}} | |
| @servers(['staging' => '', 'production' => '']) | |
| @setup | |
| {{-- The timezone your servers run in --}} | |
| $timezone = 'Europe/Amsterdam'; | |
| {{-- The base path where your deployments are sitting --}} | |
| $path = '/var/www/site.com/htdocs'; |