Skip to content

Instantly share code, notes, and snippets.

<?php namespace Illuminate\Database\Connectors;
class MySqlConnector extends Connector implements ConnectorInterface {
/**
* Establish a database connection.
*
* @param array $options
* @return PDO
*/
@ronlobo
ronlobo / eloquent.md
Created February 24, 2014 09:58 — forked from msurguy/eloquent.md

Conventions:

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';

An Anonymous Pen

Recreated http://imgur.com/GqdaY5F in one element. I don't take credit for the original (nor do I know where it's from)

There are some pretty cool tricks I came up with in order to do so:

All of the big rings are done using box shadows, as are three of the small circles

One of the small circles is done using :before, the other rotating counter clockwise is :before's box shadow

Copyright (c) 2011 ZURB, http://www.zurb.com/