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';
| <p>Double click on the boxes to edit. Drag to re-position <button id="save">Save as image</button></p> | |
| <div id="container"></div> |
| web1: | |
| document_root: public | |
| php_version: 5.3.8 | |
| php_extensions: | |
| - apc | |
| - mbstring | |
| - mcrypt | |
| - pdo_mysql | |
| - zip | |
| - eaccelerator |
| public function setPasswordAttribute($value) | |
| { | |
| $this->attributes['password'] = Hash::make($value); | |
| } |
A list of amazingly awesome PHP libraries, resources and shiny things.
| http://benpickles.github.io/peity/ | |
| http://www.humblesoftware.com/finance/index | |
| https://github.com/HumbleSoftware/envisionjs | |
| http://humblesoftware.com/flotr2/ | |
| http://dygraphs.com/ | |
| http://tenxer.github.io/xcharts/examples/ | |
| http://square.github.io/cubism/ | |
| http://www.justgage.com/ |
| Route::filter('https', function() { | |
| if (Request::env()=='production'){ | |
| if (!Request::secure()) return Redirect::to_secure(URI::current(), 301); | |
| } | |
| }); |