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';
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
| import Foundation | |
| extension String | |
| { | |
| var length: Int { | |
| get { | |
| return countElements(self) | |
| } | |
| } | |
| <?php | |
| class AnObj | |
| { | |
| protected $methods = array(); | |
| protected $properties = array(); | |
| public function __construct(array $options) | |
| { | |
| <?php | |
| class QuickGit | |
| { | |
| /** @var int */ | |
| private $major = 1; | |
| /** @var int */ | |
| private $minor = 0; |
This tutorial guides you through creating your first Vagrant project.
We start with a generic Ubuntu VM, and use the Chef provisioning tool to:
Afterwards, we'll see how easy it is to package our newly provisioned VM
| <?php | |
| /** | |
| * PHP Anonymous Object | |
| */ | |
| class AnObj | |
| { | |
| protected $methods = array(); | |
| public function __construct(array $options) |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
Setup remote repository:
ssh [email protected]
mkdir my_project.git
cd my_project.git
git init --bare
On local machine:
cd my_project